From 4865f8afcac2356b12022f82230276bb8c41ee33 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Mon, 23 Jan 2023 12:32:30 -0500 Subject: [PATCH] Scaffold: Await more async functions Might help prevent a deadlock I experienced when switching back to Zotero after changing a translator file externally (although I can't reproduce it). --- chrome/content/scaffold/scaffold.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/scaffold/scaffold.js b/chrome/content/scaffold/scaffold.js index 0b0e3a2d3f..fe9a8c3572 100644 --- a/chrome/content/scaffold/scaffold.js +++ b/chrome/content/scaffold/scaffold.js @@ -258,7 +258,7 @@ var Scaffold = new function () { null, null, {} ); if (index == 1) { - this.load(translatorID); + await this.load(translatorID); } else { _lastModifiedTime = modifiedTime; @@ -785,7 +785,7 @@ var Scaffold = new function () { _lastModifiedTime = new Date().getTime(); this.updateModelMarkers(path); - this.reloadTranslators(); + await this.reloadTranslators(); }; /**