aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/Main.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Main.hx')
-rw-r--r--src/server/Main.hx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/Main.hx b/src/server/Main.hx
index bf334a6..696651c 100644
--- a/src/server/Main.hx
+++ b/src/server/Main.hx
@@ -93,7 +93,11 @@ class Main {
public function exit():Void {
saveState();
- process.exit();
+ if (wss == null) {
+ process.exit();
+ return;
+ }
+ wss.close(() -> process.exit());
}
function generateConfigSalt():String {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage