Skip to content
Snippets Groups Projects
Commit 6e449df0 authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

[*] Fixed syncronyzation

parent 6ebca5a8
No related branches found
No related tags found
1 merge request!24Support 3689
......@@ -171,8 +171,13 @@ static void s_gbd_history_callback_notify (void * a_arg, const char a_op_code, c
if (a_arg) {
dap_chain_net_t * l_net = (dap_chain_net_t *) a_arg;
//if (!PVT (l_net)->load_mode )
// dap_chain_net_sync_all(l_net);
if (!PVT (l_net)->load_mode ){
if( pthread_mutex_trylock( &PVT (l_net)->state_mutex) == 0 ){
if ( PVT(l_net)->state == NET_STATE_ONLINE || PVT(l_net)->state == NET_STATE_ONLINE )
dap_chain_net_sync_all(l_net);
pthread_mutex_unlock( &PVT (l_net)->state_mutex);
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment