aboutsummaryrefslogtreecommitdiff
path: root/src/demoserver.cpp
diff options
context:
space:
mode:
authorstonedDiscord <stoned@derpymail.org>2021-01-18 15:39:35 +0100
committerGitHub <noreply@github.com>2021-01-18 17:39:35 +0300
commited9ecfda47668d11632857e980c9b095f42d969d (patch)
treebcb9791468e07faa5e0efec64e4bc3a77e09f5a3 /src/demoserver.cpp
parent5786694b53a28210cef9b2ea751e9b69f86af548 (diff)
forgot to return after destroying the connection (#412)
Co-authored-by: stonedDiscord <10584181+stonedDiscord@users.noreply.github.com>
Diffstat (limited to 'src/demoserver.cpp')
-rw-r--r--src/demoserver.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/demoserver.cpp b/src/demoserver.cpp
index 9f1e533d..fcb5003d 100644
--- a/src/demoserver.cpp
+++ b/src/demoserver.cpp
@@ -37,11 +37,17 @@ void DemoServer::accept_connection()
{
QString path = QFileDialog::getOpenFileName(nullptr, tr("Load Demo"), "logs/", tr("Demo Files (*.demo)"));
if (path.isEmpty())
+ {
destroy_connection();
+ return;
+ }
load_demo(path);
if (demo_data.isEmpty())
+ {
destroy_connection();
+ return;
+ }
if (demo_data.head().startsWith("SC#"))
{