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)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 17:46:34 +0000 (17:46 +0000)
Otherwise we continue to retry every message every minute, and that is bad.

citadel/modules/smtp/serv_smtpclient.c

index 1a906bfd66faf3a1f511784c5c9862a9e8a3f0a5..e18ebd0243c3655529c9a837cfd916893b67dd42 100644 (file)
@@ -962,6 +962,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;
 }