mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-26 03:28:39 +01:00
Qt/NetPlay: Fix crashes on start
This commit is contained in:
1 parent
c3d88a622d
commit
e184dc55b2
1 file changed
+2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user