]> code.citadel.org Git - citadel.git/commitdiff
Reset run_queue_now back to 0 after a forced run of the SMTP queue.
authorArt Cancro <ajc@uncensored.citadel.org>
Tue, 5 Apr 2011 18:28:48 +0000 (14:28 -0400)
committerArt Cancro <ajc@uncensored.citadel.org>
Tue, 5 Apr 2011 18:28:48 +0000 (14:28 -0400)
Otherwise we continue to retry every message every minute, and that is bad.

citadel/modules/smtp/serv_smtpclient.c

index ead668636b3366554d8c1f1c7c2f4f2fe407e68f..4aec9ddeb42aecebe87ce948f14f7afa426fef53 100644 (file)
@@ -961,6 +961,7 @@ void smtp_do_queue(void) {
                num_processed = CtdlForEachMessage(MSGS_ALL, 0L, NULL, SPOOLMIME, NULL, smtp_do_procmsg, NULL);
        }
        syslog(LOG_INFO, "SMTP client: queue run completed; %d messages processed", num_processed);
+       run_queue_now = 0;
        is_running = 0;
 }