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;