mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -05:00
Web: Fix disconnect message almost never showing now
This commit is contained in:
parent
8602d98a32
commit
907a752600
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ cc_result Socket_Read(cc_socket s, cc_uint8* data, cc_uint32 count, cc_uint32* m
|
|||
/* recv only reads one WebSocket frame at most, hence call it multiple times */
|
||||
int res; *modified = 0;
|
||||
|
||||
while (count) {
|
||||
while (count && interop_SocketGetPending(s) > 0) {
|
||||
/* returned result is negative for error */
|
||||
res = interop_SocketRecv(s, data, count);
|
||||
|
||||
|
|
Loading…
Reference in a new issue