Skip to content

Commit

Permalink
Fix potential translator initialization problem after 04516af
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Dec 12, 2016
1 parent 2ead95b commit 425838e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chrome/content/zotero/xpcom/translation/translators.js
Expand Up @@ -47,14 +47,15 @@ Zotero.Translators = new function() {
if (_initializationDeferred && !options.reinit) {
return _initializationDeferred.promise;
}
_initializationDeferred = Zotero.Promise.defer();

// Wait until bundled files have been updated, except when this is called by the schema update
// code itself
if (!options.fromSchemaUpdate) {
yield Zotero.Schema.schemaUpdatePromise;
}

_initializationDeferred = Zotero.Promise.defer();

Zotero.debug("Initializing translators");
var start = new Date;

Expand Down

0 comments on commit 425838e

Please sign in to comment.