mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-28 04:51:25 +01:00
engine: common: net_ws: fixed sockets reinitialization in NET_OpenIP
This commit is contained in:
parent
cf84ad12f1
commit
36b0d47f5f
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user