diff options
author | Miloslav Trmač <mitr@redhat.com> | 2021-08-31 15:17:45 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2021-08-31 15:51:36 +0200 |
commit | 9f7bad7dac6caff3c920403e34084a295016a1c5 (patch) | |
tree | ffe1733bd2802438b3c18a0a73e17af514351259 /vendor/github.com/vbauerster | |
parent | 83de22e892bf0d8efd29a73df462789e2b1418f3 (diff) | |
download | podman-9f7bad7dac6caff3c920403e34084a295016a1c5.tar.gz podman-9f7bad7dac6caff3c920403e34084a295016a1c5.tar.bz2 podman-9f7bad7dac6caff3c920403e34084a295016a1c5.zip |
Use UNMERGED vbauerster/mpb PR to fix a pull deadlock
> go mod edit -replace github.com/vbauerster/mpb/v7=github.com/mtrmac/mpb/v7@abort-deadlock
> make vendor
See https://github.com/vbauerster/mpb/issues/100 and
https://github.com/vbauerster/mpb/pull/101 .
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'vendor/github.com/vbauerster')
-rw-r--r-- | vendor/github.com/vbauerster/mpb/v7/bar.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/github.com/vbauerster/mpb/v7/bar.go b/vendor/github.com/vbauerster/mpb/v7/bar.go index ca191cf39..95d4439f8 100644 --- a/vendor/github.com/vbauerster/mpb/v7/bar.go +++ b/vendor/github.com/vbauerster/mpb/v7/bar.go @@ -268,13 +268,15 @@ func (b *Bar) SetPriority(priority int) { // if bar is already in complete state. If drop is true bar will be // removed as well. func (b *Bar) Abort(drop bool) { + if drop { + b.container.dropBar(b) // It is safe to call this multiple times with the same bar + } select { case b.operateState <- func(s *bState) { if s.completed == true { return } if drop { - b.container.dropBar(b) b.cancel() return } |