Qt/NetPlay: Fix crashes on start
This commit is contained in:
parent
c3d88a622d
commit
e184dc55b2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue