mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
Bug 1485660 - Allows calling DebuggerClient.close twice in a row. r=jdescottes
MozReview-Commit-ID: uACM0VtJ5E Differential Revision: https://phabricator.services.mozilla.com/D7456 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
8bcd10a7ab
commit
1fd7cbd0a7
@ -284,7 +284,9 @@ DebuggerClient.prototype = {
|
||||
this._eventsEnabled = false;
|
||||
|
||||
const cleanup = () => {
|
||||
this._transport.close();
|
||||
if (this._transport) {
|
||||
this._transport.close();
|
||||
}
|
||||
this._transport = null;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user