fix progress bar termination typo

This commit is contained in:
Adrien Delorme 2018-10-26 11:29:15 +02:00
parent 2b564eb563
commit c393ccb7ca
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ func (spb *StackableProgressBar) Finish() {
spb.mtx.Lock()
defer spb.mtx.Unlock()
if spb.items < 0 {
if spb.items > 0 {
spb.items--
}
if spb.items == 0 && spb.Bar.ProgressBar != nil {