Commit a87e288f authored by dscho's avatar dscho

close socket in ClientConnectionGone

parent 6b9df7e0
...@@ -410,6 +410,9 @@ rfbClientConnectionGone(cl) ...@@ -410,6 +410,9 @@ rfbClientConnectionGone(cl)
if (cl->next) if (cl->next)
cl->next->prev = cl->prev; cl->next->prev = cl->prev;
if(cl->sock)
close(cl->sock);
#ifdef LIBVNCSERVER_HAVE_LIBZ #ifdef LIBVNCSERVER_HAVE_LIBZ
FreeZrleData(cl); FreeZrleData(cl);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment