When hosting, don't try to connect if listening failed.
If another instance of the server is running on the same computer, this would cause Dolphin to confusingly connect to it.
This commit is contained in:
parent
cf4d015b2a
commit
229b35bb6d
|
@ -254,10 +254,13 @@ void NetPlaySetupDiag::OnHost(wxCommandEvent&)
|
||||||
if(m_upnp_chk->GetValue())
|
if(m_upnp_chk->GetValue())
|
||||||
netplay_server->TryPortmapping(port);
|
netplay_server->TryPortmapping(port);
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
MakeNetPlayDiag(port, game, true);
|
MakeNetPlayDiag(port, game, true);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
PanicAlertT("Failed to listen. Is another instance of the NetPlay server running?");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void NetPlaySetupDiag::OnJoin(wxCommandEvent&)
|
void NetPlaySetupDiag::OnJoin(wxCommandEvent&)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue