Browse Source

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.
pull/1425/merge
Pierre Ossman 3 weeks ago
parent
commit
c987d61e83
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      vncviewer/CConn.cxx

+ 0
- 2
vncviewer/CConn.cxx View File

@@ -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 //////////////////////

Loading…
Cancel
Save