Fix HaveMoreLinesWaiting. Fixes IG's problem with async.
authorDave West <davew@uncensored.citadel.org>
Thu, 25 Feb 2010 13:19:11 +0000 (13:19 +0000)
committerDave West <davew@uncensored.citadel.org>
Thu, 25 Feb 2010 13:19:11 +0000 (13:19 +0000)
citadel/sysdep.c

index 3870ab906e3907e5e08c3772cc4c4cb9dc56b02d..d748de23a02a5bd7a109064c01af0079c92a14b8 100644 (file)
@@ -635,10 +635,10 @@ int client_read_to(char *buf, int bytes, int timeout)
 
 int HaveMoreLinesWaiting(CitContext *CCC)
 {
-       if ((CCC->kill_me == 1) &&
+       if ((CCC->kill_me == 1) || (
            (CCC->Pos == NULL) && 
            (StrLength(CCC->ReadBuf) == 0) && 
-           (CCC->client_socket != -1))
+           (CCC->client_socket != -1)) )
                return 0;
        else
                return 1;