summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2016-05-26 09:52:38 +0200
committerChristian Beier <dontmind@freeshell.org>2016-05-26 09:52:38 +0200
commit475a2c944731aa5c578f1fc4aba51a3ae0069c2d (patch)
treec3864da3a94be18876c0f655df5ed3fda1f070b7
parent785f0fa2d1fe18f08bf521ed4a0d34a5d0c87782 (diff)
parent1417cb1c3f19de906074983bd98caee5283cb006 (diff)
downloadlibtdevnc-475a2c944731aa5c578f1fc4aba51a3ae0069c2d.tar.gz
libtdevnc-475a2c944731aa5c578f1fc4aba51a3ae0069c2d.zip
Merge pull request #121 from gfleury/patch-1
Avoid calling SSL_pending when connection is already closed
-rw-r--r--libvncserver/sockets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvncserver/sockets.c b/libvncserver/sockets.c
index e960936..51e86eb 100644
--- a/libvncserver/sockets.c
+++ b/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