changeset 408:65bef93e44e7

Fix a slight problem with connection pulling loop.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 May 2012 05:47:15 +0300
parents f400042cb57e
children 4556174b5be8
files nnchat.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nnchat.c	Thu May 24 05:36:11 2012 +0300
+++ b/nnchat.c	Thu May 24 05:47:15 2012 +0300
@@ -1718,6 +1718,10 @@
                     isError = TRUE;
                 }
             }
+            else if (cres < 0)
+                isError = TRUE;
+            else
+                break;
         }
         while (conn->total_bytes > 0 && !isError);