mirror of
https://github.com/zotero/zotero.git
synced 2026-09-19 00:01:31 +00:00
Check if callback exists before calling
This commit is contained in:
parent
2069b5b396
commit
8a8093028d
1 changed files with 2 additions and 2 deletions
|
|
@ -814,10 +814,10 @@ Components.utils.import("resource://gre/modules/Services.jsm");
|
|||
Zotero.DB.closeDatabase().then(function() {
|
||||
// broadcast that DB lock has been released
|
||||
Zotero.IPC.broadcast("lockReleased");
|
||||
callback();
|
||||
if(callback) callback();
|
||||
});
|
||||
} else {
|
||||
callback();
|
||||
if(callback) callback();
|
||||
}
|
||||
} catch(e) {
|
||||
Zotero.debug(e);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue