From 04db551692811768a8174122f78db6b30153a880 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 20 Apr 2021 07:17:28 -0700 Subject: [PATCH] wip: fix for https://github.com/nodejs/node/issues/37224 --- lib/internal/inspector/inspect_client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/internal/inspector/inspect_client.js b/lib/internal/inspector/inspect_client.js index 3b9750296c585c..7385b1eaf62808 100644 --- a/lib/internal/inspector/inspect_client.js +++ b/lib/internal/inspector/inspect_client.js @@ -226,6 +226,7 @@ class Client extends EventEmitter { reset() { if (this._http) { + this._http.removeAllListeners(); this._http.destroy(); } this._http = null;