Bug 1161072 - Prevent "no such actor" exception from style inspector during toolbox shutdown. r=pbrosset

This commit is contained in:
Alexandre Poirot 2015-05-18 20:15:35 +02:00
Родитель a16b27a304
Коммит bcdcfd3253
1 изменённых файлов: 8 добавлений и 1 удалений

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

@ -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;
},