diff --git a/util/ddv_socket.cpp b/util/ddv_socket.cpp index c54cee42..08bfda65 100644 --- a/util/ddv_socket.cpp +++ b/util/ddv_socket.cpp @@ -176,6 +176,7 @@ int DDV::Socket::iwrite(void * buffer, int len){ break; } } + if (r == 0){close();} return r; }//DDV::Socket::iwrite @@ -199,6 +200,7 @@ int DDV::Socket::iread(void * buffer, int len){ break; } } + if (r == 0){close();} return r; }//DDV::Socket::iread