Skip to content

Commit

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

PR-URL: #38161
Backport-PR-URL: #38858
Refs: #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>
  • Loading branch information
Trott authored and richardlau committed Jul 20, 2021
1 parent 0321c5b commit 1da6921
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 1da6921

Please sign in to comment.