Began working on the 'clean shutdown' code for the new thread architecture.
[citadel.git] / citadel / housekeeping.c
index 5773925dd382199bb84f54da25f88d31379a729d..f4d930d64802631a320086be954b50f409255f58 100644 (file)
@@ -63,7 +63,7 @@
 void check_sched_shutdown(void) {
        if ((ScheduledShutdown == 1) && (ContextList == NULL)) {
                syslog(LOG_NOTICE, "Scheduled shutdown initiating.\n");
-               CtdlThreadStopAll();
+               server_shutting_down = 1;
        }
 }