Don't attempt to close pipe if we aren't reading from it yet because we haven't yet processed events on the main thread. (Fallout from processNextEvent() removal.)
This commit is contained in:
parent
a259a6b8cd
commit
0741bb396f
|
@ -416,7 +416,7 @@ Zotero.IPC.Pipe = new function() {
|
|||
|
||||
// Keep trying to write to pipe until we succeed, in case pipe is not yet open
|
||||
Zotero.debug("IPC: Closing pipe "+file.path);
|
||||
Zotero.IPC.safePipeWrite(file, "Zotero shutdown\n", true);
|
||||
Zotero.IPC.safePipeWrite(file, "Zotero shutdown\n");
|
||||
|
||||
// Delete pipe
|
||||
file.remove(false);
|
||||
|
|
Loading…
Reference in New Issue
Block a user