Fix bug when only fork is called

If fork was called with no following operations, progress was undefined,
this caused an infinite loop.
This commit is contained in:
toby 2017-02-22 14:36:14 -05:00
parent 5f1870a6c8
commit 9404f1e0b8

View file

@ -90,7 +90,7 @@ var FlowControl = {
Promise.all(promises)
.then(function(values) {
var progress;
var progress = 0;
var output = values.map(function(value) {
progress = value.progress;