From 8437156fd384f594e434b19b7ce217286f5780f3 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Wed, 9 Jun 2021 20:10:39 +0200 Subject: :bug: fix identify struct --- src/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Server.ts') 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}`); } -- cgit 1.5.1