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:
Gregor Richards 2017-01-21 13:18:31 -05:00
parent b97b40af75
commit 8c304dfda7

View File

@ -832,6 +832,15 @@ error:
RARCH_ERR("%s\n", dmsg); RARCH_ERR("%s\n", dmsg);
runloop_msg_queue_push(dmsg, 1, 180, false); 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; return false;
} }
/** /**