OSDN Git Service

bug fix.
authorvisor <visor@users.sourceforge.jp>
Thu, 17 Oct 2013 14:23:07 +0000 (23:23 +0900)
committervisor <visor@users.sourceforge.jp>
Thu, 17 Oct 2013 14:23:07 +0000 (23:23 +0900)
lib/util_tcp.cc

index 6f371cb..d530729 100644 (file)
@@ -60,7 +60,7 @@ bool  TcpBuf::fill (TcpClient& tc) {
        }
     }
     s = tc.read (&*tail, buf.end () - tail);
-    if (s == 0)
+    if (s <= 0)
        return false;
     tail += s;