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

[*] second attempt to fix node crash on disconnect

parent cbb40816
No related branches found
No related tags found
3 merge requests!148Master,!139Bugs 4221,!137Bugs 4221
Pipeline #4083 passed with stage
in 27 seconds
...@@ -103,6 +103,7 @@ dap_stream_ch_t* dap_stream_ch_new(dap_stream_t* a_stream, uint8_t id) ...@@ -103,6 +103,7 @@ dap_stream_ch_t* dap_stream_ch_new(dap_stream_t* a_stream, uint8_t id)
pthread_rwlock_unlock(&a_stream->rwlock); pthread_rwlock_unlock(&a_stream->rwlock);
struct dap_stream_ch_table_t *l_new_ch = DAP_NEW_Z(struct dap_stream_ch_table_t); struct dap_stream_ch_table_t *l_new_ch = DAP_NEW_Z(struct dap_stream_ch_table_t);
l_new_ch->ch = ret;
pthread_mutex_lock(&s_ch_table_lock); pthread_mutex_lock(&s_ch_table_lock);
HASH_ADD_PTR(s_ch_table, ch, l_new_ch); HASH_ADD_PTR(s_ch_table, ch, l_new_ch);
pthread_mutex_unlock(&s_ch_table_lock); pthread_mutex_unlock(&s_ch_table_lock);
......
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