From 25f65c4d98900d129c1c784fdb7afba4fbf0a3f9 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 9 May 2017 02:17:03 -0400 Subject: [PATCH] Increase pipe write timeout to 500 ms from 100 ms Writing to the pipe from Firefox was sometimes taking 100 ms for me when opening Standalone, which meant that Zotero for Firefox would display an error until Firefox was restarted. --- chrome/content/zotero/xpcom/ipc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/ipc.js b/chrome/content/zotero/xpcom/ipc.js index cc7de5981..1bea49369 100755 --- a/chrome/content/zotero/xpcom/ipc.js +++ b/chrome/content/zotero/xpcom/ipc.js @@ -253,8 +253,8 @@ Zotero.IPC = new function() { } if(!defunct) { - // Try to write to the pipe for 100 ms - var time = Date.now(), timeout = time+100, wroteToPipe; + // Try to write to the pipe for 500 ms + var time = Date.now(), timeout = time+500, wroteToPipe; do { wroteToPipe = Zotero.IPC.safePipeWrite(pipe, msg+"\n"); } while(Date.now() < timeout && !wroteToPipe);