From ff304bd7be696d92be8d53b31d833b920c40d5d5 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 24 Jul 2011 16:27:42 +0000 Subject: [PATCH] Fix IPC pipe closing on Fx 3.6 (again) --- chrome/content/zotero/xpcom/ipc.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/chrome/content/zotero/xpcom/ipc.js b/chrome/content/zotero/xpcom/ipc.js index 6d74366d5..bf5ae1d51 100755 --- a/chrome/content/zotero/xpcom/ipc.js +++ b/chrome/content/zotero/xpcom/ipc.js @@ -524,7 +524,7 @@ Zotero.IPC.Pipe.Poll = function(file, callback) { // add shutdown listener var me = this; - Zotero.addShutdownListener(function() { me._clearFile() }); + Zotero.addShutdownListener(function() { file.remove(false) }); } Zotero.IPC.Pipe.Poll._activePipes = []; @@ -543,13 +543,6 @@ Zotero.IPC.Pipe.Poll.prototype = { this._callback(string); }, - /** - * Called on quit to remove the file - */ - "observe":function() { - this._file.remove(); - }, - /** * Clears the old contents of the fifo file */