summaryrefslogtreecommitdiff
path: root/vendor/github.com
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-08-31 11:15:58 -0400
committerGitHub <noreply@github.com>2021-08-31 11:15:58 -0400
commit8ab84b437352bf2b3653fe92fbfa60a59b980a93 (patch)
tree56f3ab5d4876f2a10d769af6100ac3f0daeb8bc5 /vendor/github.com
parent7b75ddb70c89656f4be334d14fec90fc5e50b736 (diff)
parent9f7bad7dac6caff3c920403e34084a295016a1c5 (diff)
downloadpodman-8ab84b437352bf2b3653fe92fbfa60a59b980a93.tar.gz
podman-8ab84b437352bf2b3653fe92fbfa60a59b980a93.tar.bz2
podman-8ab84b437352bf2b3653fe92fbfa60a59b980a93.zip
Merge pull request #11373 from mtrmac/mpb-replace
Use UNMERGED vbauerster/mpb PR to fix a pull deadlock
Diffstat (limited to 'vendor/github.com')
-rw-r--r--vendor/github.com/vbauerster/mpb/v7/bar.go4
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
}