Skip to content

Commit d9ede62

Browse files
committed
debugger: fix inspect restart on Windows
Fixes: nodejs#37224 PR-URL: nodejs#38161 Backport-PR-URL: nodejs#38858 Refs: nodejs#36481 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 2b10395 commit d9ede62

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/internal/inspector/inspect_client.js

+3
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ class Client extends EventEmitter {
228228
if (this._http) {
229229
this._http.destroy();
230230
}
231+
if (this._socket) {
232+
this._socket.destroy();
233+
}
231234
this._http = null;
232235
this._lastId = 0;
233236
this._socket = null;

0 commit comments

Comments
 (0)