mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
Make the client send an INFO even if it's wrong
This simply gives the server a reason why the client disconnected, rather than a generic, unexplained disconnection.
This commit is contained in:
parent
b97b40af75
commit
8c304dfda7
@ -832,6 +832,15 @@ error:
|
||||
RARCH_ERR("%s\n", dmsg);
|
||||
runloop_msg_queue_push(dmsg, 1, 180, false);
|
||||
}
|
||||
|
||||
if (!netplay->is_server)
|
||||
{
|
||||
/* Counter-intuitively, we still want to send our info. This is simply so
|
||||
* that the server knows why we disconnected. */
|
||||
if (!netplay_handshake_info(netplay, connection))
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user