From 8de1ccb0de495fccc68b55063b08b3d2282fe8b4 Mon Sep 17 00:00:00 2001 From: visor Date: Thu, 17 Oct 2013 23:23:07 +0900 Subject: [PATCH] bug fix. --- lib/util_tcp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util_tcp.cc b/lib/util_tcp.cc index 6f371cb..d530729 100644 --- a/lib/util_tcp.cc +++ b/lib/util_tcp.cc @@ -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; -- 2.11.0