fix progress bar termination typo
This commit is contained in:
parent
2b564eb563
commit
c393ccb7ca
|
@ -93,7 +93,7 @@ func (spb *StackableProgressBar) Finish() {
|
||||||
spb.mtx.Lock()
|
spb.mtx.Lock()
|
||||||
defer spb.mtx.Unlock()
|
defer spb.mtx.Unlock()
|
||||||
|
|
||||||
if spb.items < 0 {
|
if spb.items > 0 {
|
||||||
spb.items--
|
spb.items--
|
||||||
}
|
}
|
||||||
if spb.items == 0 && spb.Bar.ProgressBar != nil {
|
if spb.items == 0 && spb.Bar.ProgressBar != nil {
|
||||||
|
|
Loading…
Reference in New Issue