mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00
Bug 1161072 - Prevent "no such actor" exception from style inspector during toolbox shutdown. r=pbrosset
This commit is contained in:
parent
a16b27a304
commit
bcdcfd3253
@ -234,7 +234,14 @@ ElementStyle.prototype = {
|
||||
|
||||
return null;
|
||||
});
|
||||
}).then(null, promiseWarn);
|
||||
}).then(null, e => {
|
||||
// populate is often called after a setTimeout,
|
||||
// the connection may already be closed.
|
||||
if (this.destroyed) {
|
||||
return;
|
||||
}
|
||||
return promiseWarn(e);
|
||||
});
|
||||
this.populated = populated;
|
||||
return this.populated;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user