* Remove the invocation of the _onclose callback function when the socket is closed.

This commit is contained in:
Derrick Hammer 2023-04-16 07:09:42 -04:00
parent 1882752839
commit 39499397ea
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 0 additions and 1 deletions

View File

@ -43,7 +43,6 @@ export default class Peer extends BasePeer {
protected async handleChannelOnClose(socket: Socket): Promise<void> { protected async handleChannelOnClose(socket: Socket): Promise<void> {
this._socket?.destroy(); this._socket?.destroy();
await this._onclose?.(this._socket);
} }
protected async initMessages(): Promise<void> { protected async initMessages(): Promise<void> {