浏览代码

Z991239-1954 #comment fix: 解决连线中cpu高问题

胡琛80272472 4 年之前
父节点
当前提交
7a01a00e21
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Other/libbizchan/bizchan.cpp

+ 1 - 1
Other/libbizchan/bizchan.cpp

@@ -1205,7 +1205,7 @@ static void process(bizchan_t* chan) {
 			tv.tv_usec = 0;
 			// Select() updates fd_set's, so we need to build fd_set's before each select()call. 
 			build_fd_sets(conn, chan->evt[0], &read_fds, &write_fds, &except_fds);
-			int activity = select(maxfd + 1, &read_fds, &write_fds, &except_fds, &tv);
+			int activity = select(maxfd + 1, &read_fds, NULL, &except_fds, &tv);
 			if (activity == -1) {
 				perror("select()");
 				Dbg(chan, 0, "process shake select -1");