build(gulp): don't exit prematurely during cleanup

Before this change we would exit while there were cleanup micro tasks scheduled for executions,
this caused tmp files to be left over and consume a lot of space.

Fixes #4441
This commit is contained in:
Igor Minar 2015-10-27 12:21:34 +01:00
parent 94274049d4
commit ef7050892e
1 changed files with 2 additions and 1 deletions

View File

@ -1295,8 +1295,9 @@ process.on('SIGINT', function() {
runSequence('cleanup.builder', function () { runSequence('cleanup.builder', function () {
process.exit(); process.exit();
}); });
} else {
process.exit();
} }
process.exit();
}); });