[Pkg-javascript-commits] [node-async] 260/480: use a more liberal check for completed number of tasks - closes #121
Jonas Smedegaard
js at moszumanska.debian.org
Fri May 2 08:58:32 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository node-async.
commit f839572a1f24ce00be81302b993e5141c57f116d
Author: Caolan McMahon <caolan at caolanmcmahon.com>
Date: Thu Jan 31 15:23:52 2013 +0000
use a more liberal check for completed number of tasks - closes #121
---
lib/async.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/async.js b/lib/async.js
index e8520ee..b913c6e 100644
--- a/lib/async.js
+++ b/lib/async.js
@@ -103,7 +103,7 @@
}
else {
completed += 1;
- if (completed === arr.length) {
+ if (completed >= arr.length) {
callback(null);
}
}
@@ -126,7 +126,7 @@
}
else {
completed += 1;
- if (completed === arr.length) {
+ if (completed >= arr.length) {
callback(null);
}
else {
@@ -161,7 +161,7 @@
var running = 0;
(function replenish () {
- if (completed === arr.length) {
+ if (completed >= arr.length) {
return callback();
}
@@ -176,7 +176,7 @@
else {
completed += 1;
running -= 1;
- if (completed === arr.length) {
+ if (completed >= arr.length) {
callback();
}
else {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git
More information about the Pkg-javascript-commits
mailing list