engine: common: net_ws: fixed sockets reinitialization in NET_OpenIP

This commit is contained in:
SNMetamorph 2022-07-10 02:23:24 +04:00 committed by a1batross
parent cf84ad12f1
commit 36b0d47f5f
1 changed files with 2 additions and 2 deletions

View File

@ -1484,7 +1484,7 @@ static void NET_OpenIP( qboolean change_port )
if( NET_IsSocketValid( net.ip_sockets[NS_SERVER] ))
closesocket( net.ip_sockets[NS_SERVER] );
net.ip_sockets[NS_SERVER] = 0;
net.ip_sockets[NS_SERVER] = INVALID_SOCKET;
ClearBits( net_hostport->flags, FCVAR_CHANGED );
}
@ -1516,7 +1516,7 @@ static void NET_OpenIP( qboolean change_port )
if( NET_IsSocketValid(net.ip_sockets[NS_CLIENT] ))
closesocket( net.ip_sockets[NS_CLIENT] );
net.ip_sockets[NS_CLIENT] = 0;
net.ip_sockets[NS_CLIENT] = INVALID_SOCKET;
ClearBits( net_clientport->flags, FCVAR_CHANGED );
}