Bug 1014015 - Fix webapps actor exception when connecting more than once. r=paul

This commit is contained in:
Alexandre Poirot 2014-05-21 08:21:00 -04:00
parent 455badc214
commit efea15696f

View File

@ -204,6 +204,10 @@ WebappsActor.prototype = {
actorPrefix: "webapps",
disconnect: function () {
try {
this.unwatchApps();
} catch(e) {}
// When we stop using this actor, we should ensure removing all files.
for (let upload of this._uploads) {
upload.remove();