Merge pull request #121 from gfleury/patch-1

Avoid calling SSL_pending when connection is already closed
pull/1/head
Christian Beier 9 years ago
commit 475a2c9447

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

Loading…
Cancel
Save