[Pkg-javascript-commits] [node-async] 192/480: Avoid double calling tasks in auto when one or more tasks are synchronous.

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:25 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 8377d9c28ec5e696585c98802d6f89d557b223dd
Author: Allan Carroll <allanca at gmail.com>
Date:   Tue May 29 22:22:28 2012 -0700

    Avoid double calling tasks in auto when one or more tasks are synchronous.
---
 lib/async.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/async.js b/lib/async.js
index 4a51d28..7cc4f5e 100644
--- a/lib/async.js
+++ b/lib/async.js
@@ -400,7 +400,7 @@
             var ready = function () {
                 return _reduce(requires, function (a, x) {
                     return (a && results.hasOwnProperty(x));
-                }, true);
+                }, true) && !results.hasOwnProperty(k);
             };
             if (ready()) {
                 task[task.length - 1](taskCallback, results);

-- 
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