X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fsysdep.c;h=6be3f2cca11739d35cabfda447d548cdc57bbcb3;hb=b26b9a4af7901e3a80354248c92baafb8a994c18;hp=552183dd2a215eafc4ba30a6c77228be1b94ba59;hpb=d99a5a75b3d160f77e18cfeedd26ed95cca252e2;p=citadel.git diff --git a/citadel/sysdep.c b/citadel/sysdep.c index 552183dd2..6be3f2cca 100644 --- a/citadel/sysdep.c +++ b/citadel/sysdep.c @@ -1863,15 +1863,6 @@ void dead_session_purge(int force) { rem = rem->next; free(ptr); } - - /* Raise the size of the worker thread pool if necessary. */ - begin_critical_section(S_THREAD_LIST); - if ( (num_sessions > num_workers) - && (num_workers < config.c_max_workers) ) { - ctdl_internal_create_thread("Worker Thread", CTDLTHREAD_BIGSTACK + CTDLTHREAD_WORKER, worker_thread, NULL); - } - end_critical_section(S_THREAD_LIST); - // FIXME: reduce the number of worker threads too }