We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6194ae4 commit 7b463f7Copy full SHA for 7b463f7
1 file changed
src/libvncclient/sockets.c
@@ -1004,7 +1004,7 @@ int WaitForMessage(rfbClient* client,unsigned int usecs)
1004
return num;
1005
}
1006
1007
- if(FD_ISSET(client->sock, &fds))
+ if(client->sock != RFB_INVALID_SOCKET && FD_ISSET(client->sock, &fds))
1008
client->serverMsg = TRUE;
1009
if(client->multicastSock >= 0 && FD_ISSET(client->multicastSock, &fds))
1010
client->serverMsgMulticast = TRUE;
0 commit comments