Skip to content

Commit

Permalink
debugger: fix inspect restart on Windows
Browse files Browse the repository at this point in the history
Fixes: nodejs#37224

PR-URL: nodejs#38161
Backport-PR-URL: nodejs#38858
Refs: nodejs#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]>
  • Loading branch information
Trott authored and targos committed Jun 6, 2021
1 parent 22d967b commit a3055a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/internal/inspector/inspect_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a3055a1

Please sign in to comment.