From a3fb4c4db09714dd6778e5dd8d620c1f42971731 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Sat, 18 Mar 2023 11:47:44 +0100 Subject: [PATCH] close ws --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 1ac080a..64d7fd6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -17,7 +17,7 @@ import bruteforce from "./sys/bruteforce.js"; import { fullSetup, partiellSetup } from "./setup/config.js"; import { addGetMethods } from "./api/get.js"; import { activatePost, addPostMethods } from "./api/post.js"; -import { activateWS, wsOnConnection } from "./api/ws.js"; +import { activateWS, closeWebSocket, wsOnConnection } from "./api/ws.js"; import { startUpdateCert } from "./server/serverCerts.js"; import { wait } from "./sys/tools.js"; @@ -65,7 +65,7 @@ const activeRequest = false; var serverclose = { close: (d: () => void) => d() }; nman.addShutdownTask(() => new Promise(async (res, rej) => { - //await closeWebSocket(); + await closeWebSocket(); serverclose.close(() => res()); }), 30000);