Fixed so demo can disconnect without editor locking up

Closes #8
This commit is contained in:
Daniel Collin 2012-10-30 22:07:41 +01:00
parent af042ad66e
commit 7f0f7a0991

View File

@ -248,11 +248,12 @@ bool RemoteConnection_recv(char* buffer, size_t length, int flags)
if (!RemoteConnection_connected()) if (!RemoteConnection_connected())
return false; return false;
if ((ret = recv(s_socket, buffer, (int)length, flags)) != (int)length) ret = recv(s_socket, buffer, (int)length, flags);
if (ret == 0)
{ {
//rlog(R_INFO, "%d %d\n", ret, length); RemoteConnection_disconnect();
//RemoteConnection_disconnect(); return false;
//return false;
} }
return true; return true;