1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #37780 from tiborvass/fix-progress-panic

pkg/progress: work around closing closed channel panic
This commit is contained in:
Tibor Vass 2018-09-13 14:45:15 -07:00 committed by GitHub
commit 11841b70d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}