From d45a256ce0b5aab1fbb7601db67c94a09f5b37db Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 20 Jul 2017 02:51:24 -0500 Subject: [PATCH] FS-10472: [mod_conference] Crash due to hangup race in conference personal canvas mode -- the saga continues --- src/mod/applications/mod_conference/conference_video.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/mod/applications/mod_conference/conference_video.c b/src/mod/applications/mod_conference/conference_video.c index ed1cc5e416..a0abe13d45 100644 --- a/src/mod/applications/mod_conference/conference_video.c +++ b/src/mod/applications/mod_conference/conference_video.c @@ -2084,14 +2084,9 @@ void *SWITCH_THREAD_FUNC conference_video_layer_thread_run(switch_thread_t *thre while(conference_utils_member_test_flag(member, MFLAG_RUNNING) && member->layer_thread_running) { mcu_layer_t *layer = NULL; mcu_canvas_t *canvas = NULL; - - - if (member->layer_thread_wake_up) { - printf("STAY UP!\n"); - } else { - printf("FUCK SLEEP\n"); + + if (!member->layer_thread_wake_up) { switch_thread_cond_wait(member->layer_cond, member->layer_cond_mutex); - printf("FUCK AWAKE\n"); } member->layer_thread_wake_up = 0;