diff nnchat.c @ 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 8a5a81c465f0
children 4556174b5be8
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);