summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-06-09 20:10:39 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-06-09 20:10:39 +0200
commit8437156fd384f594e434b19b7ce217286f5780f3 (patch)
treef85d8594ff1b10f3948cc627d31a318b4ee20eb9 /src/Server.ts
parent:bug: make server options optional (diff)
downloadserver-8437156fd384f594e434b19b7ce217286f5780f3.tar.xz
:bug: fix identify struct
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Server.ts b/src/Server.ts

index e897090c..f59ac7f1 100644 --- a/src/Server.ts +++ b/src/Server.ts
@@ -34,7 +34,7 @@ export class Server { await this.setupSchema(); await Config.init(); console.log("[DB] connected"); - this.server.listen(this.port); + if (!this.server.listening) this.server.listen(this.port); console.log(`[Gateway] online on 0.0.0.0:${this.port}`); }