From 4415df9540afd86671f9169c1542536c71000180 Mon Sep 17 00:00:00 2001 From: dscho Date: Thu, 15 Nov 2001 21:57:12 +0000 Subject: Visual C++ / win32 compatibility reestablished --- rfbserver.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rfbserver.c') diff --git a/rfbserver.c b/rfbserver.c index 48c6e66..b75d1c7 100644 --- a/rfbserver.c +++ b/rfbserver.c @@ -205,6 +205,8 @@ rfbNewTCPOrUDPClient(rfbScreen,sock,isUDP) rfbReleaseClientIterator(iterator); FD_SET(sock,&(rfbScreen->allFds)); + rfbScreen->maxFd = max(sock,rfbScreen->maxFd); + INIT_MUTEX(cl->outputMutex); INIT_MUTEX(cl->refCountMutex); INIT_COND(cl->deleteCond); @@ -326,6 +328,8 @@ rfbClientConnectionGone(cl) } #endif + FD_CLR(cl->sock,&(cl->screen->allFds)); + cl->clientGoneHook(cl); rfbLog("Client %s gone\n",cl->host); -- cgit v1.2.1