Fixed weird issue with connection

This commit is contained in:
Daniel Collin 2012-12-30 11:04:17 +01:00
parent 77799725e8
commit e3ac4ed673

View File

@ -270,7 +270,11 @@ int RemoteConnection_recv(char* buffer, size_t length, int flags)
ret = recv(s_socket, buffer, (int)length, flags); ret = recv(s_socket, buffer, (int)length, flags);
#if defined(_WIN32)
if (ret <= 0) if (ret <= 0)
#else
if (ret == 0)
#endif
{ {
RemoteConnection_disconnect(); RemoteConnection_disconnect();
return false; return false;