Don't let one failing shutdown listener screw everything up
This commit is contained in:
parent
1a86279e5d
commit
9b66aa8234
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue