From c987d61e8330063d9ae90d6e4b7c6d7e05109456 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 9 Apr 2024 12:54:22 +0200 Subject: [PATCH] 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. --- vncviewer/CConn.cxx | 2 -- 1 file changed, 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 ////////////////////// -- 2.39.5