summaryrefslogtreecommitdiff
path: root/lib/async.js
diff options
context:
space:
mode:
authorSergey Kirillov <serg@rainboo.com>2011-04-29 15:31:22 +0300
committerSergey Kirillov <serg@rainboo.com>2011-04-29 15:31:22 +0300
commitfc67262866362803cc1f98fb72bee37bf607a883 (patch)
tree67cb68b3275b7a545ca46d1c800b0cf9debcbe1f /lib/async.js
parent293fecf8d6827989a78565671a3f7764a662a685 (diff)
downloadasync-fc67262866362803cc1f98fb72bee37bf607a883.tar.gz
Fixed bug with calling callback several times when some functions were executed in parallel.
Diffstat (limited to 'lib/async.js')
-rw-r--r--lib/async.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/async.js b/lib/async.js
index bd44a06..d5fe445 100644
--- a/lib/async.js
+++ b/lib/async.js
@@ -347,6 +347,7 @@
addListener(function () {
if (completed.length === keys.length) {
callback(null);
+ callback = function () {};
}
});