From 57ffec48a0334ff04e673f21266b74052d547814 Mon Sep 17 00:00:00 2001 From: Dave West Date: Thu, 25 Feb 2010 13:19:11 +0000 Subject: [PATCH] Fix HaveMoreLinesWaiting. Fixes IG's problem with async. --- citadel/sysdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2