X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcontext_loop.c;h=266b2f4c7d4a4ffb328bc1dc390236493bec0245;hb=8837ef861d6cad629f9902749f7b05dbe8383d79;hp=2dd63c9a2efdb551193577e536d64489caa7b04a;hpb=88063ed1e26f3262c0a9cd5c344ec60824467f38;p=citadel.git diff --git a/webcit/context_loop.c b/webcit/context_loop.c index 2dd63c9a2..266b2f4c7 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -114,7 +114,7 @@ void check_thread_pool_size(void) if (time_to_die) return; /* don't expand the thread pool during shutdown */ begin_critical_section(S_SPAWNER); /* only one of these should run at a time */ - while ( + if ( (num_threads_executing >= num_threads_existing) && (num_threads_existing < MAX_WORKER_THREADS) ) {