parent
af042ad66e
commit
7f0f7a0991
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user