pkg/progress: work around closing closed channel panic
I could not reproduce the panic in #37735, so here's a bandaid. Signed-off-by: Tibor Vass <tibor@docker.com> (cherry picked from commit 7dac70324d0ce6acd23458b0bef06f099837d648) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 2c26eac56628527ed64c79ce9145ed97583cbeca Component: engine
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
ea3c2e02fc
commit
27a6fe5146
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user