mirror of
https://github.com/libretro/RetroArch
synced 2025-02-25 12:41:18 +00:00
(Netplay) Cthulhu88 - Remove forced disconnection on unknown netplay command -
will be backwards compatible with any version that removed this disconnect. instead of disconnecting, we just read the data and ignore, like most network implementations do
This commit is contained in:
parent
0b16a64d40
commit
65a421d90f
@ -5307,9 +5307,18 @@ static bool netplay_get_cmd(netplay_t *netplay,
|
||||
}
|
||||
|
||||
default:
|
||||
RARCH_ERR("%s\n",
|
||||
msg_hash_to_str(MSG_UNKNOWN_NETPLAY_COMMAND_RECEIVED));
|
||||
return netplay_cmd_nak(netplay, connection);
|
||||
{
|
||||
unsigned char buf[1024];
|
||||
while (cmd_size)
|
||||
{
|
||||
RECV(buf, (cmd_size > sizeof(buf)) ? sizeof(buf) : cmd_size)
|
||||
return false;
|
||||
cmd_size -= recvd;
|
||||
}
|
||||
RARCH_ERR("%s\n",
|
||||
msg_hash_to_str(MSG_UNKNOWN_NETPLAY_COMMAND_RECEIVED));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
netplay_recv_flush(&connection->recv_packet_buffer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user