Parcourir la 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/1670/head
Pierre Ossman il y a 1 mois
Parent
révision
c987d61e83
1 fichiers modifiés avec 0 ajouts et 2 suppressions
  1. 0
    2
      vncviewer/CConn.cxx

+ 0
- 2
vncviewer/CConn.cxx Voir le fichier

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

Chargement…
Annuler
Enregistrer