Qt/NetPlay: Fix crashes on start

This commit is contained in:
spycrab 2018-05-06 19:00:17 +02:00
parent c3d88a622d
commit e184dc55b2

View File

@ -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;
}