Codebase list golang-github-vbauerster-mpb / 6065ec5
correct popCompleted and dropOnComplete if both popCompleted and dropOnComplete are on popCompleted postpone dropOnComplete by one cycle so it can pop a bar before drop. Vladimir Bauer 3 years ago
1 changed file(s) with 8 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
350350 s.pool = append(s.pool, qb)
351351 drop = true
352352 } else if s.popCompleted && !b.bs.noPop {
353 if frame.shutdown > 1 {
354 popCount += usedRows
355 drop = true
356 } else {
353 switch frame.shutdown {
354 case 1:
355 b.priority = s.popPriority
357356 s.popPriority++
358 b.priority = s.popPriority
357 drop = false
358 default:
359 if drop {
360 popCount += usedRows
361 }
359362 }
360363 }
361364 if drop {