www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 9b66aa8234fac3bb1a8f550ac1d4fe75f0a5e1a9
parent 1a86279e5d4a784e2e0866a1ce0d3350f5113889
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed, 24 Aug 2011 06:29:02 +0000

Don't let one failing shutdown listener screw everything up


Diffstat:
Mchrome/content/zotero/xpcom/zotero.js | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -760,7 +760,11 @@ if(appInfo.platformVersion[0] >= 2) { Zotero.closing = true; // run shutdown listener - for each(var listener in _shutdownListeners) listener(); + for each(var listener in _shutdownListeners) { + try { + listener(); + } catch(e) {} + } // remove temp directory Zotero.removeTempDirectory();