Browse Source

krfb: Crashes after the VNC client disconnect

This resolves bug 2972 and issue #2

Signed-off-by: Roman Savochenko <roman@roman.home>
bug/2972/KrfbCloseCrash
Roman Savochenko 3 years ago
parent
commit
aece7d56ac
  1. 4
      libvncserver/main.c

4
libvncserver/main.c

@ -1103,14 +1103,14 @@ void rfbScreenCleanup(rfbScreenInfoPtr screen)
rfbReleaseClientIterator(i);
if (mOnHoldClientHandlerThread) {
mOnHoldClientHandlerThread->exit();
//mOnHoldClientHandlerThread->exit();
delete mOnHoldClientHandlerThread;
mOnHoldClientHandlerThread = NULL;
delete mOnHoldClientHandler;
mOnHoldClientHandler = NULL;
}
if (mControlPipeHandlerThread) {
mControlPipeHandlerThread->exit();
//mControlPipeHandlerThread->exit();
delete mControlPipeHandlerThread;
mControlPipeHandlerThread = NULL;
delete mControlPipeHandler;

Loading…
Cancel
Save