Fix crash on stop in netplay, and stop netplay when anyone with a pad mapped in game stops emulation.

This commit is contained in:
Rachel Bryk
2013-09-02 21:54:28 -04:00
parent 6b1c8f9d17
commit cea7737aef
4 changed files with 34 additions and 4 deletions

View File

@ -650,8 +650,6 @@ void PadMapDiag::OnAdjust(wxCommandEvent& event)
void NetPlay::StopGame()
{
if (netplay_server != NULL)
netplay_server->StopGame();
// TODO: allow non-hosting clients to close the window
if (netplay_client != NULL)
netplay_client->Stop();
}