зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b0746404ef
Коммит
d99221792f
|
@ -284,7 +284,9 @@ DebuggerClient.prototype = {
|
|||
this._eventsEnabled = false;
|
||||
|
||||
const cleanup = () => {
|
||||
this._transport.close();
|
||||
if (this._transport) {
|
||||
this._transport.close();
|
||||
}
|
||||
this._transport = null;
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче