diff --git a/resource/concurrent-caller.js b/resource/concurrent-caller.js index 6b409078f5..89673d2bc6 100644 --- a/resource/concurrent-caller.js +++ b/resource/concurrent-caller.js @@ -107,10 +107,11 @@ ConcurrentCaller.prototype.fcall = function (func) { return deferred.promise; } - this._log("Running function (" + this._numRunning + " current < " + this._numConcurrent + " max)"); + this._numRunning++; // Otherwise run it now - this._numRunning++; + this._log("Running function (" + this._numRunning + "/" + this._numConcurrent + ")"); + return this._onFunctionDone(Promise.try(func)); }