From 4cafa716993666bc7fb7abd155fdbff505150846 Mon Sep 17 00:00:00 2001 From: Pedro Teixeira Date: Fri, 21 Oct 2011 12:02:43 +0100 Subject: [PATCH] making sure the queue gets calledback --- lib/pipeline.js | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pipeline.js b/lib/pipeline.js index e18aba4..b34e12a 100644 --- a/lib/pipeline.js +++ b/lib/pipeline.js @@ -130,6 +130,8 @@ function Pipeline(name, options) { if (err) { done(); return toErrorState(doc, stateDoc, err); } if (! changedState) { noMoreStates(); + } else { + done(); } }, verbose); } else { diff --git a/package.json b/package.json index 64661de..b208dd7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name" : "banzai" , "description" : "Library for creating document processing pipelines" , "tags" : ["ETL", "pipeline", "document", "state machine"] -, "version" : "0.5.11" +, "version" : "0.5.12" , "author" : "Pedro Teixeira " , "repository" : { "type" : "git"