Permalink
Browse files

Qt/NetPlay: Fix crashes on start

  • Loading branch information...
spycrab committed May 6, 2018
1 parent c3d88a6 commit e184dc55b2d59ccd330576d1069cfa2d46fe1f40
Showing with 2 additions and 0 deletions.
  1. +2 −0 Source/Core/DolphinQt2/MainWindow.cpp
@@ -921,6 +921,7 @@ bool MainWindow::NetPlayJoin()
{
QMessageBox::critical(nullptr, QObject::tr("Error"),
QObject::tr("Failed to connect to server"));
NetPlayQuit();
return false;
}
@@ -970,6 +971,7 @@ bool MainWindow::NetPlayHost(const QString& game_id)
QObject::tr(
"Failed to listen on port %1. Is another instance of the NetPlay server running?")
.arg(host_port));
NetPlayQuit();
return false;
}

0 comments on commit e184dc5

Please sign in to comment.