Merge pull request #121 from gfleury/patch-1

Avoid calling SSL_pending when connection is already closed
pull/1/head
Christian Beier 6 years ago
commit 475a2c9447
  1. 2
      libvncserver/sockets.c

@ -394,7 +394,7 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec)
#ifdef LIBVNCSERVER_WITH_WEBSOCKETS
do {
rfbProcessClientMessage(cl);
} while (webSocketsHasDataInBuffer(cl));
} while (cl->sock > 0 && webSocketsHasDataInBuffer(cl));
#else
rfbProcessClientMessage(cl);
#endif

Loading…
Cancel
Save