nwm_uds: Change ASSERT to LOG_ERROR
This might be caused by some packet/status delay within the enet protocol, or may be caused by our not properly handling disconnection. Anyway, this situation *can* happen, and we should not crash Citra for a non-critical error.
This commit is contained in:
parent
9965ce6938
commit
b34ceb89c5
1 changed files with 5 additions and 3 deletions
|
@ -344,9 +344,11 @@ void NWM_UDS::HandleSecureDataPacket(const Network::WifiPacket& packet) {
|
|||
// The packet wasn't addressed to us, we can only act as a router if we're the host.
|
||||
// However, we might have received this packet due to a broadcast from the host, in that
|
||||
// case just ignore it.
|
||||
ASSERT_MSG(packet.destination_address == Network::BroadcastMac ||
|
||||
connection_status.status == static_cast<u32>(NetworkStatus::ConnectedAsHost),
|
||||
"Can't be a router if we're not a host");
|
||||
if (packet.destination_address != Network::BroadcastMac &&
|
||||
connection_status.status != static_cast<u32>(NetworkStatus::ConnectedAsHost)) {
|
||||
LOG_ERROR(Service_NWM, "Received packet addressed to others but we're not a host");
|
||||
return;
|
||||
}
|
||||
|
||||
if (connection_status.status == static_cast<u32>(NetworkStatus::ConnectedAsHost) &&
|
||||
secure_data.dest_node_id != BroadcastNetworkNodeId) {
|
||||
|
|
Loading…
Reference in a new issue