From e3ac4ed67366a2031dd159c79bfa1d82cd34a1f4 Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Sun, 30 Dec 2012 11:04:17 +0100 Subject: [PATCH] Fixed weird issue with connection --- ogl_editor/src/RemoteConnection.c | 4 ++++ 1 file changed, 4 insertions(+) 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;