This commit is contained in:
jusax23 2023-03-18 11:47:44 +01:00
parent 10bbf16915
commit a3fb4c4db0
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41

View file

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