mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-29 16:24:16 +00: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] ))
|
if( NET_IsSocketValid( net.ip_sockets[NS_SERVER] ))
|
||||||
closesocket( 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 );
|
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] ))
|
if( NET_IsSocketValid(net.ip_sockets[NS_CLIENT] ))
|
||||||
closesocket( 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 );
|
ClearBits( net_clientport->flags, FCVAR_CHANGED );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user