diff --git a/src/connection_unix.cpp b/src/connection_unix.cpp index 6fe359e..85dace3 100644 --- a/src/connection_unix.cpp +++ b/src/connection_unix.cpp @@ -118,5 +118,8 @@ bool BaseConnection::Read(void* data, size_t length) } Close(); } + else if (res == 0) { + Close(); + } return res == (int)length; }