summaryrefslogtreecommitdiffstats
path: root/rfbserver.c
diff options
context:
space:
mode:
Diffstat (limited to 'rfbserver.c')
-rw-r--r--rfbserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfbserver.c b/rfbserver.c
index 16cf8d6..51daae4 100644
--- a/rfbserver.c
+++ b/rfbserver.c
@@ -137,7 +137,6 @@ rfbNewClientConnection(rfbScreen,sock)
if(cl!=NULL)
newConnection(cl, (KEYBOARD_DEVICE|POINTER_DEVICE),1,1,1);
#endif
- FD_SET(sock,&(rfbScreen->allFds));
}
@@ -194,6 +193,7 @@ rfbNewClient(rfbScreen,sock)
cl = (rfbClientPtr)xalloc(sizeof(rfbClientRec));
+ FD_SET(sock,&(rfbScreen->allFds));
cl->screen = rfbScreen;
cl->sock = sock;
getpeername(sock, (struct sockaddr *)&addr, &addrlen);