From 6c4ec9d9544b23fddee720e05eb17e965fb59a5e Mon Sep 17 00:00:00 2001 From: William King Date: Sat, 25 May 2013 11:06:01 -0700 Subject: [PATCH] Fix a possible deadlock scenario in the impossible scenario from the last patch. --- src/switch_event.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/switch_event.c b/src/switch_event.c index 203a6d861d..7ba93ce438 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -255,6 +255,7 @@ static void *SWITCH_THREAD_FUNC switch_event_dispatch_thread(switch_thread_t *th } if ( my_id >= MAX_DISPATCH_VAL ) { + switch_mutex_unlock(EVENT_QUEUE_MUTEX); return NULL; }