mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-28 06:52:35 +00:00
We should not try to broadcast via the IPv4 socket if that socket is closed.
Previously, error messages were generated when querying local servers while IPv4 was disabled. Patch from /dev/humancontroller.
This commit is contained in:
parent
b5456faaea
commit
2cfda4384b
1 changed files with 2 additions and 1 deletions
|
@ -651,6 +651,7 @@ void Sys_SendPacket( int length, const void *data, netadr_t to ) {
|
|||
}
|
||||
|
||||
if( (ip_socket == INVALID_SOCKET && to.type == NA_IP) ||
|
||||
(ip_socket == INVALID_SOCKET && to.type == NA_BROADCAST) ||
|
||||
(ip6_socket == INVALID_SOCKET && to.type == NA_IP6) ||
|
||||
(ip6_socket == INVALID_SOCKET && to.type == NA_MULTICAST6) )
|
||||
return;
|
||||
|
@ -690,7 +691,7 @@ void Sys_SendPacket( int length, const void *data, netadr_t to ) {
|
|||
return;
|
||||
}
|
||||
|
||||
Com_Printf( "NET_SendPacket: %s\n", NET_ErrorString() );
|
||||
Com_Printf( "Sys_SendPacket: %s\n", NET_ErrorString() );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue