Explorar o código

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

胡琛80272472 %!s(int64=4) %!d(string=hai) anos
pai
achega
7a01a00e21
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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");