mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Fix startup error in translation-server
This commit is contained in:
parent
9b41c8dd97
commit
34208f92f7
1 changed files with 5 additions and 1 deletions
|
|
@ -62,8 +62,12 @@ Zotero.Server = new function() {
|
|||
|
||||
Zotero.debug("HTTP server listening on "+(bindAllAddr ? "*": " 127.0.0.1")+":"+serv.port);
|
||||
|
||||
Zotero.addShutdownListener(this.close.bind(this));
|
||||
// Close port on Zotero shutdown (doesn't apply to translation-server)
|
||||
if (Zotero.addShutdownListener) {
|
||||
Zotero.addShutdownListener(this.close.bind(this));
|
||||
}
|
||||
} catch(e) {
|
||||
Zotero.logError(e);
|
||||
Zotero.debug("Not initializing HTTP server");
|
||||
serv = undefined;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue