diff --git a/ogl_editor/src/RemoteConnection.c b/ogl_editor/src/RemoteConnection.c index 71aa7a5..ae464d6 100644 --- a/ogl_editor/src/RemoteConnection.c +++ b/ogl_editor/src/RemoteConnection.c @@ -270,7 +270,11 @@ int RemoteConnection_recv(char* buffer, size_t length, int flags) ret = recv(s_socket, buffer, (int)length, flags); +#if defined(_WIN32) if (ret <= 0) +#else + if (ret == 0) +#endif { RemoteConnection_disconnect(); return false;