Skip to content

Commit

Permalink
Correctly set socket write notification
Browse files Browse the repository at this point in the history
That extra add_fd() only set the read notification, overwriting any
write notification set up in the lines just above.
  • Loading branch information
CendioOssman committed Apr 9, 2024
1 parent 9d70f6b commit c987d61
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vncviewer/CConn.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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 //////////////////////
Expand Down

0 comments on commit c987d61

Please sign in to comment.