From 47c93b1f1a4f82a39a24435fd1b15528e20ea61e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 16 Feb 2023 01:02:00 -0500 Subject: [PATCH] *need to use socket destroy --- src/peer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peer.ts b/src/peer.ts index 3655324..f3443a9 100644 --- a/src/peer.ts +++ b/src/peer.ts @@ -90,7 +90,7 @@ export default class Peer { self._socket.emit("data", m); }, async onclose() { - self._socket?.end(); + self._socket?.destroy(); await self._onclose?.(self._socket); }, });