From: Dave West Date: Thu, 25 Feb 2010 13:19:11 +0000 (+0000) Subject: Fix HaveMoreLinesWaiting. Fixes IG's problem with async. X-Git-Tag: v7.86~378 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=57ffec48a0334ff04e673f21266b74052d547814;p=citadel.git Fix HaveMoreLinesWaiting. Fixes IG's problem with async. --- diff --git a/citadel/sysdep.c b/citadel/sysdep.c index 3870ab906..d748de23a 100644 --- a/citadel/sysdep.c +++ b/citadel/sysdep.c @@ -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;