diff options
author | Sergey Kirillov <serg@rainboo.com> | 2011-04-29 15:31:22 +0300 |
---|---|---|
committer | Sergey Kirillov <serg@rainboo.com> | 2011-04-29 15:31:22 +0300 |
commit | fc67262866362803cc1f98fb72bee37bf607a883 (patch) | |
tree | 67cb68b3275b7a545ca46d1c800b0cf9debcbe1f /lib/async.js | |
parent | 293fecf8d6827989a78565671a3f7764a662a685 (diff) | |
download | async-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.js | 1 |
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 () {}; } }); |