Skip to content
Snippets Groups Projects
Commit 5723348b authored by Aleksei Voronin's avatar Aleksei Voronin
Browse files

[*] fixed removing of unlinked events

parent 6de76408
No related branches found
No related tags found
1 merge request!56[*] fixed removing of unlinked events
......@@ -301,7 +301,7 @@ static int s_chain_callback_atom_add(dap_chain_t * a_chain, dap_chain_atom_ptr_t
l_link_hash += sizeof (dap_chain_hash_fast_t ) ) {
l_event_last = NULL;
pthread_rwlock_wrlock(&PVT(l_dag)->events_rwlock);
HASH_FIND(hh,PVT(l_dag)->events_lasts_unlinked,&l_link_hash,sizeof(*l_link_hash), l_event_last);
HASH_FIND(hh,PVT(l_dag)->events_lasts_unlinked,l_link_hash,sizeof(*l_link_hash), l_event_last);
if ( l_event_last ){ // If present in unlinked - remove
HASH_DEL(PVT(l_dag)->events_lasts_unlinked,l_event_last);
DAP_DEL_Z(l_event_last);
......
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