From 55992e341dae739ba139d5760703fcc5bc397f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Tue, 8 Aug 2017 12:46:20 +0300 Subject: [PATCH] Add more logging for word plugin installer --- resource/word-processor-plugin-installer.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resource/word-processor-plugin-installer.js b/resource/word-processor-plugin-installer.js index b829c56253..1d901860bd 100644 --- a/resource/word-processor-plugin-installer.js +++ b/resource/word-processor-plugin-installer.js @@ -97,7 +97,10 @@ ZoteroPluginInstaller.prototype = { )) { var me = this; - if(installationInProgress) return; + if (installationInProgress) { + Zotero.debug(`${this._addon.APP} extension installation is already in progress`); + return; + } installationInProgress = true; if(!this._addon.DISABLE_PROGRESS_WINDOW) { @@ -112,6 +115,8 @@ ZoteroPluginInstaller.prototype = { } } catch(e) { Zotero.logError(e); + } finally { + installationInProgress = false; } },