Skip to content
Closed
Prev Previous commit
Next Next commit
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 <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 committed Jul 15, 2021
commit 802e4c1cdd4a060fca9676baba5dbbd833e18ac6
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