Skip to content

Commit

Permalink
interp: Disable progress after decode is done
Browse files Browse the repository at this point in the history
Otherwise reading might cause progress output
  • Loading branch information
wader committed Oct 25, 2021
1 parent c1d9b4d commit 2e964fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/interp/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,11 @@ func (i *Interp) _decode(c interface{}, a []interface{}) interface{} {
},
)
}
defer evalProgress(nil)
// when done decoding, tell progress function were done and disable it
defer func() {
bbf.progressFn = nil
evalProgress(nil)
}()
}
}

Expand Down

0 comments on commit 2e964fa

Please sign in to comment.