diff options
Diffstat (limited to 'rfbserver.c')
-rw-r--r-- | rfbserver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rfbserver.c b/rfbserver.c index b75d1c7..34ac38e 100644 --- a/rfbserver.c +++ b/rfbserver.c @@ -328,7 +328,8 @@ rfbClientConnectionGone(cl) } #endif - FD_CLR(cl->sock,&(cl->screen->allFds)); + if(cl->sock>=0) + FD_CLR(cl->sock,&(cl->screen->allFds)); cl->clientGoneHook(cl); |