aboutsummaryrefslogtreecommitdiff
path: root/src/aoapplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/aoapplication.cpp')
-rw-r--r--src/aoapplication.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/aoapplication.cpp b/src/aoapplication.cpp
index ecfd97a..f253a5a 100644
--- a/src/aoapplication.cpp
+++ b/src/aoapplication.cpp
@@ -65,11 +65,6 @@ void AOApplication::construct_lobby()
discord->state_lobby();
}
- if (demo_server)
- {
- demo_server->deleteLater();
- }
- demo_server = new DemoServer(this);
w_lobby->show();
}
@@ -120,6 +115,8 @@ void AOApplication::destruct_courtroom()
return;
}
+ delete demo_server;
+ demo_server = nullptr;
delete w_courtroom;
w_courtroom = nullptr;
}