Browse files

fix for node 0.10: use setImmediate() instead of process.nextTick()

  • Loading branch information...
1 parent 8b84a17 commit 7f760fb1f50973ad2f386ca160b2b61b2f89e848 Jaakko Manninen committed Mar 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ncp.js
View
2 lib/ncp.js
@@ -45,7 +45,7 @@ function ncp (source, dest, options, callback) {
function getStats(source) {
if (running >= limit) {
- return process.nextTick(function () {
+ return setImmediate(function () {
getStats(source);
});
}

0 comments on commit 7f760fb

Please sign in to comment.