From 4a22faa6f319238487d2e63a357880f74e7cf3b7 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 20 Apr 2021 07:17:28 -0700 Subject: [PATCH] debugger: fix inspect restart on Windows Fixes: https://github.com/nodejs/node/issues/37224 --- lib/internal/inspector/inspect_client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/internal/inspector/inspect_client.js b/lib/internal/inspector/inspect_client.js index 3b9750296c585c..83a594388975f0 100644 --- a/lib/internal/inspector/inspect_client.js +++ b/lib/internal/inspector/inspect_client.js @@ -228,6 +228,9 @@ class Client extends EventEmitter { if (this._http) { this._http.destroy(); } + if (this._socket) { + this._socket.destroy(); + } this._http = null; this._lastId = 0; this._socket = null;