From da7ddfb5d7ad4eeb9f138ec56224279fa615c6c6 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Tue, 16 Aug 2011 13:40:01 +0100 Subject: [PATCH] fixed #84 Import bug --- node/utils/Abiword.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node/utils/Abiword.js b/node/utils/Abiword.js index 87bbb58db..8287cdbb7 100644 --- a/node/utils/Abiword.js +++ b/node/utils/Abiword.js @@ -74,9 +74,6 @@ if(os.type().indexOf("Windows") > -1) //thats much faster, about factor 10 else { - //Queue with the converts we have to do - var queue = async.queue(doConvertTask, 1); - //spawn the abiword process var abiword = spawn(settings.abiword, ["--plugin", "AbiCommand"]); @@ -137,6 +134,9 @@ else }; } + //Queue with the converts we have to do + var queue = async.queue(doConvertTask, 1); + exports.convertFile = function(srcFile, destFile, type, callback) { queue.push({"srcFile": srcFile, "destFile": destFile, "type": type, "callback": callback});