Skip to content

Commit

Permalink
Merge pull request #4021 from cb1kenobi/timob-13171
Browse files Browse the repository at this point in the history
[TIMOB-13171] Fixed call stack issue when symlinking files.
  • Loading branch information
nebrius committed Mar 23, 2013
2 parents 33d5056 + d5804b4 commit 7b42c84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions iphone/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2251,7 +2251,9 @@ build.prototype = {
var srcFile = path.join(src, file),
destFile = path.join(dest, file);
if (fs.lstatSync(srcFile).isDirectory()) {
symlinkResources(srcFile, destFile, false, next);
setTimeout(function () {
symlinkResources(srcFile, destFile, false, next);
}, 1);
} else {
symlinkHook(srcFile, destFile, next);
}
Expand All @@ -2260,7 +2262,7 @@ build.prototype = {
}
};
}), cb);
} else if (cb) {
} else {
cb();
}
}.bind(this),
Expand Down

0 comments on commit 7b42c84

Please sign in to comment.