From 3ce2313c5a64dd547376af00925b3dc65c1032e3 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 16 Feb 2023 01:02:20 -0500 Subject: [PATCH] *Update dist --- dist/peer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/peer.js b/dist/peer.js index 6916c94..05ab567 100644 --- a/dist/peer.js +++ b/dist/peer.js @@ -53,7 +53,7 @@ class Peer { self._socket.emit("data", m); }, async onclose() { - self._socket?.end(); + self._socket?.destroy(); await self._onclose?.(self._socket); }, });