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:
Alexandre Poirot 2018-10-15 08:36:03 +00:00
parent 8bcd10a7ab
commit 1fd7cbd0a7

View File

@ -284,7 +284,9 @@ DebuggerClient.prototype = {
this._eventsEnabled = false;
const cleanup = () => {
this._transport.close();
if (this._transport) {
this._transport.close();
}
this._transport = null;
};