More places to use the right api function.
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 23 Oct 2014 20:05:37 +0000 (22:05 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 23 Oct 2014 20:05:37 +0000 (22:05 +0200)
citadel/modules/networkclient/serv_networkclient.c

index 72f48367ca7869a21f2a7239802e689fb4667a7a..5c38f46ed762f258306ba873c159f11a6a86bf65 100644 (file)
@@ -286,8 +286,7 @@ eNextState NWC_ReadAuthReply(AsyncNetworker *NW)
                else {
                        SetNWCState(IO, eNWCVSAuthFailNTT);
                        EVN_syslog(LOG_ERR, "%s\n", ChrPtr(NW->IO.ErrMsg));
-                       StopClientWatchers(IO, 1);
-                       return QueueDBOperation(IO, NWC_SendFailureMessage);
+                       return EventQueueDBOperation(IO, NWC_SendFailureMessage, 1);
                }
                return eAbort;
        }
@@ -844,8 +843,7 @@ eReadState NWC_ReadServerStatus(AsyncIO *IO)
 eNextState NWC_FailNetworkConnection(AsyncIO *IO)
 {
        SetNWCState(IO, eNWCVSConnFail);
-       StopClientWatchers(IO, 1);
-       return QueueDBOperation(IO, NWC_SendFailureMessage);
+       return EventQueueDBOperation(IO, NWC_SendFailureMessage, 1);
 }
 
 void NWC_SetTimeout(eNextState NextTCPState, AsyncNetworker *NW)