diff options
author | Vaughn Iverson <vsivsi@yahoo.com> | 2014-05-22 10:54:23 -0700 |
---|---|---|
committer | Vaughn Iverson <vsivsi@yahoo.com> | 2014-05-22 10:54:23 -0700 |
commit | 2f8680c6bd96a0ba7b38f052d200f6364a02de69 (patch) | |
tree | a8b3bf0316d6d0c775948d84ede65e29aad0409a | |
parent | f5d804f068e9950a38e34c050842cf2400cc1c00 (diff) | |
download | async-2f8680c6bd96a0ba7b38f052d200f6364a02de69.tar.gz |
Add var to declare loop index as local
-rwxr-xr-x | lib/async.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/async.js b/lib/async.js index a39e8c1..a13f835 100755 --- a/lib/async.js +++ b/lib/async.js @@ -827,7 +827,7 @@ q.paused = false; // Need to call q.process once per concurrent // worker to preserve full concurrency after pause - for (w = 1; w <= q.concurrency; w++) { + for (var w = 1; w <= q.concurrency; w++) { async.setImmediate(q.process); } } |