diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-04-09 12:54:22 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-04-09 12:54:22 +0200 |
commit | c987d61e8330063d9ae90d6e4b7c6d7e05109456 (patch) | |
tree | 57e567fb27ef48e320229d1200b7d6f00582c0b6 /vncviewer/CConn.cxx | |
parent | 9d70f6bf10e4789db0951cce2861620a0a044864 (diff) | |
download | tigervnc-c987d61e8330063d9ae90d6e4b7c6d7e05109456.tar.gz tigervnc-c987d61e8330063d9ae90d6e4b7c6d7e05109456.zip |
Correctly set socket write notification
That extra add_fd() only set the read notification, overwriting any
write notification set up in the lines just above.
Diffstat (limited to 'vncviewer/CConn.cxx')
-rw-r--r-- | vncviewer/CConn.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx index 46821de0..82c4af41 100644 --- a/vncviewer/CConn.cxx +++ b/vncviewer/CConn.cxx @@ -280,9 +280,7 @@ void CConn::socketEvent(FL_SOCKET fd, void *data) when |= FL_WRITE; Fl::add_fd(fd, when, socketEvent, data); - recursing = false; - Fl::add_fd(fd, FL_READ | FL_EXCEPT, socketEvent, data); } ////////////////////// CConnection callback methods ////////////////////// |