*change close hook to be one time as it does not need to stay hooked, else memory leak
This commit is contained in:
parent
5ea823679f
commit
b76f0f12dd
|
@ -123,7 +123,7 @@ function handleSocketListenEvent(aq: ActiveQuery) {
|
|||
};
|
||||
|
||||
socket.on(event, cb);
|
||||
socket.on("close", () => {
|
||||
socket.once("close", () => {
|
||||
socket.off(event, cb);
|
||||
respond();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue