Commit 1e4c2e73 authored by dscho's avatar dscho

really fixed ClientConnectionGone problem

parent 47c481b7
fixed LinuxVNC colour handling
fixed a bug with pthreads where the connection was not closed
moved vncterm to main package (LinuxVNC included)
portability fixes (IRIX, OSX, Solaris)
more portable way to determine endianness and types of a given size
......
......@@ -408,14 +408,14 @@ rfbClientConnectionGone(cl)
#endif
#ifdef HAVE_LIBPTHREAD
LOCK(cl->refCountMutex);
if(cl->refCount) {
UNLOCK(cl->refCountMutex);
if(cl->screen->backgroundLoop != FALSE)
WAIT(cl->deleteCond,cl->refCountMutex);
} else {
UNLOCK(cl->refCountMutex);
}
if(cl->screen->backgroundLoop != FALSE)
do {
LOCK(cl->refCountMutex);
i=cl->refCount;
UNLOCK(cl->refCountMutex);
if(i>0)
WAIT(cl->deleteCond,cl->refCountMutex);
} while(i>0);
#endif
if(cl->sock>=0)
......
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