From f7928cfcc646cd95556549b64e61228892314682 Mon Sep 17 00:00:00 2001 From: Lookis Date: Fri, 25 Mar 2022 16:43:36 +0800 Subject: [PATCH] fix: connection leaks (#420) --- lib/client/websocket-tracker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/client/websocket-tracker.js b/lib/client/websocket-tracker.js index 1573cfd..7c48858 100644 --- a/lib/client/websocket-tracker.js +++ b/lib/client/websocket-tracker.js @@ -301,6 +301,7 @@ class WebSocketTracker extends Tracker { clearTimeout(peer.trackerTimeout) peer.trackerTimeout = null delete this.peers[offerId] + peer.destroy() } else { debug(`got unexpected answer: ${JSON.stringify(data.answer)}`) }