SMTP-Client: GetShutdownDeliveries() deliveres a bool not a count.
authorWilfried Goesgens <dothebart@citadel.org>
Mon, 16 Apr 2012 09:14:59 +0000 (11:14 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Mon, 16 Apr 2012 09:14:59 +0000 (11:14 +0200)
citadel/modules/smtp/serv_smtpeventclient.c

index c8da5590e63b62841f30a3cfccf81331957679bc..4a8cfcda9e169a1bf69920c8299bbd3b04230981 100644 (file)
@@ -231,11 +231,11 @@ eNextState FinalizeMessageSend_DB3(AsyncIO *IO)
 
 eNextState FinalizeMessageSend_DB4(AsyncIO *IO)
 {
-       int n;
+       int Done;
        SmtpOutMsg *Msg = IO->Data;
 
-       n = GetShutdownDeliveries(Msg->MyQItem);
-       if (n > 0
+       Done = GetShutdownDeliveries(Msg->MyQItem);
+       if (!Done
                return NextDBOperation(IO, FinalizeMessageSend_DB4);
        else
                return eAbort;