close ws
This commit is contained in:
parent
10bbf16915
commit
a3fb4c4db0
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue