Merge pull request #55 from thaJeztah/18.09_backport_fix-progress-panic

[18.09] backport pkg/progress: work around closing closed channel panic
Upstream-commit: c24fd7a2c3e4381010f1039d6a4cfa35f635d074
Component: engine
This commit is contained in:
Tibor Vass
2018-09-17 11:43:41 -07:00
committed by GitHub
@@ -39,6 +39,10 @@ type Output interface {
type chanOutput chan<- Progress
func (out chanOutput) WriteProgress(p Progress) error {
// FIXME: workaround for panic in #37735
defer func() {
recover()
}()
out <- p
return nil
}