mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
Revert "(Netplay) Cthulhu88 - Remove forced disconnection on unknown netplay command -"
This reverts commit 65a421d90fa8050eb56767aa6b582fc63009ac02.
This commit is contained in:
parent
9e0b98cd89
commit
680b631ad6
@ -5321,18 +5321,9 @@ static bool netplay_get_cmd(netplay_t *netplay,
|
|||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
RARCH_ERR("%s\n",
|
||||||
unsigned char buf[1024];
|
msg_hash_to_str(MSG_UNKNOWN_NETPLAY_COMMAND_RECEIVED));
|
||||||
while (cmd_size)
|
return netplay_cmd_nak(netplay, connection);
|
||||||
{
|
|
||||||
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);
|
netplay_recv_flush(&connection->recv_packet_buffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user