From 28d09a73ce5784dc8a8d3b5706746dbb8d68bb18 Mon Sep 17 00:00:00 2001 From: dscho Date: Sat, 2 Oct 2004 23:54:14 +0000 Subject: release client list mutex earlier --- libvncserver/rfbserver.c | 4 ++-- 1 file 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); -- cgit v1.2.1