mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 06:29:00 +01:00
NetPlay: Select a game only if enet connected successfully
This commit is contained in:
parent
e0ef8fc03f
commit
849922881d
@ -360,10 +360,10 @@ void NetPlaySetupDiag::OnHost(wxCommandEvent&)
|
||||
unsigned long centralPort = 0;
|
||||
m_traversal_port->GetValue().ToULong(¢ralPort);
|
||||
netplay_server = new NetPlayServer(u16(port), trav, WxStrToStr(m_traversal_server->GetValue()), u16(centralPort));
|
||||
netplay_server->ChangeGame(game);
|
||||
netplay_server->AdjustPadBufferSize(INITIAL_PAD_BUFFER_SIZE);
|
||||
if (netplay_server->is_connected)
|
||||
{
|
||||
netplay_server->ChangeGame(game);
|
||||
netplay_server->AdjustPadBufferSize(INITIAL_PAD_BUFFER_SIZE);
|
||||
#ifdef USE_UPNP
|
||||
if (m_upnp_chk->GetValue())
|
||||
netplay_server->TryPortmapping(port);
|
||||
|
Loading…
x
Reference in New Issue
Block a user