commit 78205c2482db2778a87925cd4813f0756a2d0242
parent 5ae9bd41ae9d0dc8fc5e51427c59263a1de95086
Author: Simon Kornblith <simon@simonster.com>
Date: Wed, 12 Jan 2011 18:44:28 +0000
Fix integration failures after switching commands.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/integration_worker.js b/chrome/content/zotero/xpcom/integration_worker.js
@@ -41,9 +41,10 @@ onmessage = function(event) {
// define buffer for reading from fifo
const BUFFER_SIZE = 4096;
- var buf = ctypes.char.array(BUFFER_SIZE)("");
while(true) {
+ var buf = ctypes.char.array(BUFFER_SIZE)("");
+
// open fifo (this will block until something writes to it)
var fd = open(path, 0);