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.
This commit is contained in:
parent
4d4c0f9e73
commit
25f65c4d98
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user