diff --git a/lib/soda/client.js b/lib/soda/client.js index 2ae6eb1..b892c23 100755 --- a/lib/soda/client.js +++ b/lib/soda/client.js @@ -190,7 +190,7 @@ Client.prototype.__defineGetter__('chain', function(){ */ Client.prototype.end = function(fn){ - this._done = function(){this.queue = null; return fn.apply(this, arguments)}; + this._done = function(){this.queue = []; return fn.apply(this, arguments)}; this.queue.shift()(); };