diff options
Diffstat (limited to 'libvncserver/main.c')
-rw-r--r-- | libvncserver/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libvncserver/main.c b/libvncserver/main.c index 3af90ca..52bd4e7 100644 --- a/libvncserver/main.c +++ b/libvncserver/main.c @@ -455,12 +455,11 @@ clientOutput(void *data) haveUpdate = sraRgnAnd(updateRegion,cl->requestedRegion); sraRgnDestroy(updateRegion); } - UNLOCK(cl->updateMutex); if (!haveUpdate) { WAIT(cl->updateCond, cl->updateMutex); - UNLOCK(cl->updateMutex); /* we really needn't lock now. */ } + UNLOCK(cl->updateMutex); } /* OK, now, to save bandwidth, wait a little while for more |