Skip to content

Commit

Permalink
Added the child.delete() to the node execution queue
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCastex committed May 14, 2017
1 parent a261eae commit 9614be9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/resource/physical/PhysicalFolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var PhysicalFolder = (function (_super) {
return;
}
ResourceChildren_1.forAll(children, function (child, cb) {
child.delete(cb);
process.nextTick(function () { return child.delete(cb); });
}, function () {
fs.rmdir(_this.realPath, function (e) {
if (e)
Expand Down
2 changes: 1 addition & 1 deletion src/resource/physical/PhysicalFolder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class PhysicalFolder extends PhysicalResource
}

forAll<IResource>(children, (child, cb) => {
child.delete(cb);
process.nextTick(() => child.delete(cb));
}, () => {
fs.rmdir(this.realPath, (e) => {
if(e)
Expand Down

0 comments on commit 9614be9

Please sign in to comment.