Skip to content

Commit 1da6921

Browse files
Trottrichardlau
authored andcommitted
debugger: fix inspect restart on Windows
Fixes: #37224 PR-URL: #38161 Backport-PR-URL: #38858 Refs: https://github.com/nodejs/node/discussions/36481 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Jan Krems <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Stephen Belanger <[email protected]> Reviewed-By: Gerhard Stöbich <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 0321c5b commit 1da6921

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/internal/inspector/inspect_client.js

Lines changed: 3 additions & 0 deletions
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)