浏览代码

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 1 个月前
父节点
当前提交
c987d61e83
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0
    2
      vncviewer/CConn.cxx

+ 0
- 2
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 //////////////////////

正在加载...
取消
保存