Revert "(Netplay) Cthulhu88 - Remove forced disconnection on unknown netplay command -"

This reverts commit 65a421d90fa8050eb56767aa6b582fc63009ac02.
This commit is contained in:
twinaphex 2021-11-12 19:08:34 +01:00
parent 9e0b98cd89
commit 680b631ad6

View File

@ -5321,18 +5321,9 @@ static bool netplay_get_cmd(netplay_t *netplay,
}
default:
{
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;
RARCH_ERR("%s\n",
msg_hash_to_str(MSG_UNKNOWN_NETPLAY_COMMAND_RECEIVED));
return netplay_cmd_nak(netplay, connection);
}
netplay_recv_flush(&connection->recv_packet_buffer);