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-11 15:46:22 +00:00
Родитель b0746404ef
Коммит d99221792f
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

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