Merge pull request #6769 from spycrab/qt_fix_netplay

Qt/NetPlay: Fix crashes on start
This commit is contained in:
Anthony 2018-05-07 09:57:02 -07:00 committed by GitHub
commit 8212b6e9cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -955,6 +955,7 @@ bool MainWindow::NetPlayJoin()
{
QMessageBox::critical(nullptr, QObject::tr("Error"),
QObject::tr("Failed to connect to server"));
NetPlayQuit();
return false;
}
@ -1004,6 +1005,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;
}