This commit is contained in:
Bernhard Schelling 2023-06-26 20:46:10 +09:00 committed by LibretroAdmin
parent 5342d4ff63
commit 5b1e28843e

View File

@ -4818,9 +4818,9 @@ static void handle_play_spectate(netplay_t *netplay,
(uint16_t)(connection - netplay->connections + 1)))
{
/* core wants us to drop this new client */
connection->mode = NETPLAY_CONNECTION_CONNECTED;
uint32_t reason = htonl(
NETPLAY_CMD_MODE_REFUSED_REASON_OTHER);
connection->mode = NETPLAY_CONNECTION_CONNECTED;
netplay_send_raw_cmd(netplay, connection,
NETPLAY_CMD_MODE_REFUSED, &reason, sizeof(reason));
netplay_hangup(netplay, connection);