From 39499397ea0ddc0b08d0271c66937ef423d3f949 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 16 Apr 2023 07:09:42 -0400 Subject: [PATCH] * Remove the invocation of the _onclose callback function when the socket is closed. --- src/proxies/basic/peer.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/proxies/basic/peer.ts b/src/proxies/basic/peer.ts index 39df9f4..d16ab2e 100644 --- a/src/proxies/basic/peer.ts +++ b/src/proxies/basic/peer.ts @@ -43,7 +43,6 @@ export default class Peer extends BasePeer { protected async handleChannelOnClose(socket: Socket): Promise { this._socket?.destroy(); - await this._onclose?.(this._socket); } protected async initMessages(): Promise {