forked from mirrors/gecko-dev
Bug 1918473 - Add missing awaits to install and uninstall background tasks. a=diannaS
Original Revision: https://phabricator.services.mozilla.com/D222007 Differential Revision: https://phabricator.services.mozilla.com/D222313
This commit is contained in:
parent
62bd2b97d1
commit
fb02913d8d
2 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ export async function runBackgroundTask() {
|
|||
|
||||
console.log("Cleaning up update files.");
|
||||
try {
|
||||
Cc["@mozilla.org/updates/update-manager;1"]
|
||||
await Cc["@mozilla.org/updates/update-manager;1"]
|
||||
.getService(Ci.nsIUpdateManager)
|
||||
.doInstallCleanup();
|
||||
} catch (ex) {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ export async function runBackgroundTask() {
|
|||
|
||||
console.log("Cleaning up update files.");
|
||||
try {
|
||||
Cc["@mozilla.org/updates/update-manager;1"]
|
||||
await Cc["@mozilla.org/updates/update-manager;1"]
|
||||
.getService(Ci.nsIUpdateManager)
|
||||
.doUninstallCleanup();
|
||||
} catch (ex) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue