Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
comex committed Sep 22, 2013
1 parent cf4d015 commit 229b35b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Source/Core/DolphinWX/Src/NetWindow.cpp
Expand Up @@ -254,9 +254,12 @@ void NetPlaySetupDiag::OnHost(wxCommandEvent&)
if(m_upnp_chk->GetValue())
netplay_server->TryPortmapping(port);
#endif
MakeNetPlayDiag(port, game, true);
}
else
{
PanicAlertT("Failed to listen. Is another instance of the NetPlay server running?");
}

MakeNetPlayDiag(port, game, true);
}

void NetPlaySetupDiag::OnJoin(wxCommandEvent&)
Expand Down

0 comments on commit 229b35b

Please sign in to comment.