mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
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
Block a user