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);