summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvncserver/rfbserver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvncserver/rfbserver.c b/libvncserver/rfbserver.c
index a2086ed..33e277d 100644
--- a/libvncserver/rfbserver.c
+++ b/libvncserver/rfbserver.c
@@ -425,6 +425,8 @@ rfbClientConnectionGone(cl)
} while(i>0);
#endif
+ UNLOCK(rfbClientListMutex);
+
if(cl->sock>=0)
FD_CLR(cl->sock,&(cl->screen->allFds));
@@ -454,8 +456,6 @@ rfbClientConnectionGone(cl)
sraRgnDestroy(cl->requestedRegion);
sraRgnDestroy(cl->copyRegion);
- UNLOCK(rfbClientListMutex);
-
if (cl->translateLookupTable) free(cl->translateLookupTable);
TINI_COND(cl->updateCond);