From: Art Cancro Date: Tue, 5 Apr 2011 18:28:48 +0000 (-0400) Subject: Reset run_queue_now back to 0 after a forced run of the SMTP queue. X-Git-Tag: v8.11~791 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=fe991146d55ae2d92f4efb65f5e3a72f0c6f0453;p=citadel.git Reset run_queue_now back to 0 after a forced run of the SMTP queue. Otherwise we continue to retry every message every minute, and that is bad. --- diff --git a/citadel/modules/smtp/serv_smtpclient.c b/citadel/modules/smtp/serv_smtpclient.c index 1a906bfd6..e18ebd024 100644 --- a/citadel/modules/smtp/serv_smtpclient.c +++ b/citadel/modules/smtp/serv_smtpclient.c @@ -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; }