diff options
author | Jakub Adam <jakub.adam@collabora.com> | 2019-02-12 14:47:28 +0100 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2019-03-08 14:41:30 +0000 |
commit | cce48cfbf64157c79fecd8d84260a407ea08ecb6 (patch) | |
tree | 00d606fd32a9fad18dbf629f71995525c21deeb7 /tests | |
parent | 9afd0c8b8f12aa560f800ced7e50b4da40dea456 (diff) | |
download | libnice-cce48cfbf64157c79fecd8d84260a407ea08ecb6.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-new-trickle.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-new-trickle.c b/tests/test-new-trickle.c index 53c35ee..a3a4452 100644 --- a/tests/test-new-trickle.c +++ b/tests/test-new-trickle.c @@ -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); |