Changed the way we create aditional threads. One for every connection is
[citadel.git] / citadel / sysdep.c
index 552183dd2a215eafc4ba30a6c77228be1b94ba59..6be3f2cca11739d35cabfda447d548cdc57bbcb3 100644 (file)
@@ -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
 }