From 503b9d3753e78f75689a743b3ec8a5f483ad3a20 Mon Sep 17 00:00:00 2001 From: Mike Jerris Date: Wed, 9 Aug 2017 16:25:26 -0500 Subject: [PATCH] FS-10577: [core] start additional event dispatch threads based on event system queue size --- src/switch_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_event.c b/src/switch_event.c index 078b740397..f3b0566ac0 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -363,7 +363,7 @@ static switch_status_t switch_event_queue_dispatch_event(switch_event_t **eventp switch_mutex_lock(EVENT_QUEUE_MUTEX); if (!PENDING && switch_queue_size(EVENT_DISPATCH_QUEUE) > (unsigned int)(DISPATCH_QUEUE_LEN * DISPATCH_THREAD_COUNT)) { - if (SOFT_MAX_DISPATCH + 1 > MAX_DISPATCH) { + if (SOFT_MAX_DISPATCH + 1 < MAX_DISPATCH) { launch++; PENDING++; }