From: Mike Jerris Date: Wed, 9 Aug 2017 21:25:26 +0000 (-0500) Subject: FS-10577: [core] start additional event dispatch threads based on event system queue... X-Git-Tag: v1.6.20~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f782bdc04e32b178225e8c611f989c5b307e32d;p=thirdparty%2Ffreeswitch.git FS-10577: [core] start additional event dispatch threads based on event system queue size --- diff --git a/src/switch_event.c b/src/switch_event.c index 4ebe0f37d5..f049baf72b 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -362,7 +362,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++; }