diff options
author | dscho <dscho> | 2001-11-15 21:57:12 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-11-15 21:57:12 +0000 |
commit | 4415df9540afd86671f9169c1542536c71000180 (patch) | |
tree | 305b64d075ae226b187b9c64f723089a68dd817d /rfbserver.c | |
parent | 281cb78005eba8a365fbcf3d1c868a5f4972ed0e (diff) | |
download | libtdevnc-4415df9540afd86671f9169c1542536c71000180.tar.gz libtdevnc-4415df9540afd86671f9169c1542536c71000180.zip |
Visual C++ / win32 compatibility reestablished
Diffstat (limited to 'rfbserver.c')
-rw-r--r-- | rfbserver.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |