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:
Simon Kornblith 2011-10-03 17:05:23 +00:00
parent a259a6b8cd
commit 0741bb396f

View File

@ -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);