Commit cce48cfb authored by Jakub Adam's avatar Jakub Adam Committed by Olivier Crête

test-new-trickle: prevent deadlock in dgram_process()

The STUN thread may be blocked waiting for stun_signal_ptr so signal it
when stopping the thread.
parent 9afd0c8b
......@@ -772,7 +772,9 @@ int main(void)
// Do this to make sure the STUN thread exits
exit_stun_thread = TRUE;
drop_stun_packets = TRUE;
send_stun = FALSE;
send_dummy_data ();
g_cond_signal (stun_signal_ptr);
g_object_add_weak_pointer (G_OBJECT (lagent), (gpointer *) &lagent);
g_object_add_weak_pointer (G_OBJECT (ragent), (gpointer *) &ragent);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment