diff options
Diffstat (limited to 'client/socket.c')
-rw-r--r-- | client/socket.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/client/socket.c b/client/socket.c index c0a6d1f..23a1dca 100644 --- a/client/socket.c +++ b/client/socket.c @@ -115,18 +115,15 @@ bool cClientSocket::CheckConnection(void) { if (IsOpen()) { cTBSelect select; - Dprintf("connection open\n"); - // XXX+ check if connection is still alive (is there a better way?) // There REALLY shouldn't be anything readable according to PROTOCOL here // If there is, assume it's an eof signal (subseq. read would return 0) select.Add(*this, false); int res; if ((res = select.Select(0)) == 0) { - Dprintf("select said nothing happened\n"); return true; } - Dprintf("closing connection (res was %d)", res); + Dprintf("closing connection (res was %d)\n", res); Close(); } |