diff options
author | madmaxoft <github@xoft.cz> | 2014-01-24 18:51:15 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-24 18:51:15 +0100 |
commit | d8014d1ed8dd2374f77d670a1368958c8a10541a (patch) | |
tree | 0afbc25b23e0c9fbedcea1b0f5b1836bcfe56142 | |
parent | Fixed Win nightbuilds not producing PDBs. (diff) | |
download | cuberite-d8014d1ed8dd2374f77d670a1368958c8a10541a.tar cuberite-d8014d1ed8dd2374f77d670a1368958c8a10541a.tar.gz cuberite-d8014d1ed8dd2374f77d670a1368958c8a10541a.tar.bz2 cuberite-d8014d1ed8dd2374f77d670a1368958c8a10541a.tar.lz cuberite-d8014d1ed8dd2374f77d670a1368958c8a10541a.tar.xz cuberite-d8014d1ed8dd2374f77d670a1368958c8a10541a.tar.zst cuberite-d8014d1ed8dd2374f77d670a1368958c8a10541a.zip |
-rw-r--r-- | Tools/ProtoProxy/Connection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/ProtoProxy/Connection.cpp b/Tools/ProtoProxy/Connection.cpp index cd66e2dfd..b63935f38 100644 --- a/Tools/ProtoProxy/Connection.cpp +++ b/Tools/ProtoProxy/Connection.cpp @@ -243,7 +243,8 @@ void cConnection::Run(void) FD_ZERO(&ReadFDs); FD_SET(m_ServerSocket, &ReadFDs); FD_SET(m_ClientSocket, &ReadFDs); - int res = select(2, &ReadFDs, NULL, NULL, NULL); + SOCKET MaxSocket = std::max(m_ServerSocket, m_ClientSocket); + int res = select(MaxSocket + 1, &ReadFDs, NULL, NULL, NULL); if (res <= 0) { printf("select() failed: %d; aborting client", SocketError); |