mirror of
https://github.com/containers/podman.git
synced 2025-09-28 01:04:28 +08:00
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>
This commit is contained in:
4
vendor/github.com/vbauerster/mpb/v7/bar.go
generated
vendored
4
vendor/github.com/vbauerster/mpb/v7/bar.go
generated
vendored
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user