EV: stop all watchers before going into other queues - so we can avoid race conditions.
[citadel.git] / citadel / modules / smtp / serv_smtpeventclient.c
index dd4e3e2662b08a05a10784a4e36ee4a26dda378f..afdde7dad1e229a5b8f60708fe3a8781f7a976f3 100644 (file)
@@ -254,7 +254,7 @@ eNextState Terminate(AsyncIO *IO)
 eNextState FinalizeMessageSend(SmtpOutMsg *Msg)
 {
        /* hand over to DB Queue */
-       return QueueDBOperation(&Msg->IO, FinalizeMessageSend_DB);
+       return EventQueueDBOperation(&Msg->IO, FinalizeMessageSend_DB);
 }
 
 eNextState FailOneAttempt(AsyncIO *IO)