*change close hook to be one time as it does not need to stay hooked, else memory leak

This commit is contained in:
Derrick Hammer 2023-03-18 14:41:20 -04:00
parent 5ea823679f
commit b76f0f12dd
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ function handleSocketListenEvent(aq: ActiveQuery) {
};
socket.on(event, cb);
socket.on("close", () => {
socket.once("close", () => {
socket.off(event, cb);
respond();
});