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:
Nick Alexander 2024-09-17 01:46:36 +00:00
parent 62bd2b97d1
commit fb02913d8d
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {