Commit 28d09a73 authored by dscho's avatar dscho

release client list mutex earlier

parent e383decc
...@@ -425,6 +425,8 @@ rfbClientConnectionGone(cl) ...@@ -425,6 +425,8 @@ rfbClientConnectionGone(cl)
} while(i>0); } while(i>0);
#endif #endif
UNLOCK(rfbClientListMutex);
if(cl->sock>=0) if(cl->sock>=0)
FD_CLR(cl->sock,&(cl->screen->allFds)); FD_CLR(cl->sock,&(cl->screen->allFds));
...@@ -454,8 +456,6 @@ rfbClientConnectionGone(cl) ...@@ -454,8 +456,6 @@ rfbClientConnectionGone(cl)
sraRgnDestroy(cl->requestedRegion); sraRgnDestroy(cl->requestedRegion);
sraRgnDestroy(cl->copyRegion); sraRgnDestroy(cl->copyRegion);
UNLOCK(rfbClientListMutex);
if (cl->translateLookupTable) free(cl->translateLookupTable); if (cl->translateLookupTable) free(cl->translateLookupTable);
TINI_COND(cl->updateCond); TINI_COND(cl->updateCond);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment