Fix connection failure logic in AsyncQueue, return if not reconnected

This commit is contained in:
Douglas Clowes
2013-06-14 13:33:08 +10:00
parent bff8cc2c16
commit 1ac674099d

View File

@@ -300,7 +300,6 @@ static int StartCommand(pAsyncQueue self)
iRet = NETRead(sock, reply, 128, 0); iRet = NETRead(sock, reply, 128, 0);
if (iRet < 0) { /* EOF */ if (iRet < 0) { /* EOF */
iRet = AQ_Reconnect(self); iRet = AQ_Reconnect(self);
if (iRet == 0)
return 0; return 0;
} else if (iRet > 0) { } else if (iRet > 0) {
struct timeval tv; struct timeval tv;