Fixed weird issue with connection
This commit is contained in:
parent
77799725e8
commit
e3ac4ed673
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user