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>
This commit is contained in:
parent
f94eec2308
commit
7dac70324d
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue