Fix a bug where we would check the wrong socket for readiness
- Would occur when processing a "list" command on the game server git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7255 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
4a3b92bd4b
commit
dd66b9fe33
|
@ -1931,7 +1931,7 @@ static void NETallowJoining(void)
|
|||
debug(LOG_NET, "tmp_socket[%d]=%p Accepted", i, tmp_socket[i]);
|
||||
SDLNet_TCP_AddSocket(tmp_socket_set, tmp_socket[i]);
|
||||
if (SDLNet_CheckSockets(tmp_socket_set, 1000) > 0
|
||||
&& SDLNet_SocketReady(tmp_socket[0])
|
||||
&& SDLNet_SocketReady(tmp_socket[i])
|
||||
&& (recv_result = SDLNet_TCP_Recv(tmp_socket[i], buffer, 5)))
|
||||
{
|
||||
if(strcmp(buffer, "list")==0)
|
||||
|
|
Loading…
Reference in New Issue