summaryrefslogtreecommitdiffstats
path: root/vncviewer/CConn.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2019-12-09 16:58:07 +0100
committerPierre Ossman <ossman@cendio.se>2019-12-09 16:58:07 +0100
commit10c40dbc8639acf97b246cfebc2b4bf8c55d564d (patch)
tree4d34467999c0af1761416cdcd179de51f4816b57 /vncviewer/CConn.cxx
parentec3899ecd1c49548b08dd38e1e7a93b4602328a8 (diff)
downloadtigervnc-10c40dbc8639acf97b246cfebc2b4bf8c55d564d.tar.gz
tigervnc-10c40dbc8639acf97b246cfebc2b4bf8c55d564d.zip
Check the correct stream if there is more data pending
The input stream might no longer be the raw socket, so we need to query what's currently active. That wrapping stream might have its own buffering and may have more data even if the socket is drained.
Diffstat (limited to 'vncviewer/CConn.cxx')
-rw-r--r--vncviewer/CConn.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx
index 6ba3276b..eba5dd34 100644
--- a/vncviewer/CConn.cxx
+++ b/vncviewer/CConn.cxx
@@ -266,7 +266,7 @@ void CConn::socketEvent(FL_SOCKET fd, void *data)
// Also check if we need to stop reading and terminate
if (should_exit())
break;
- } while (cc->sock->inStream().checkNoWait(1));
+ } while (cc->getInStream()->checkNoWait(1));
} catch (rdr::EndOfStream& e) {
vlog.info("%s", e.str());
exit_vncviewer();