diff --git a/progress.go b/progress.go index dac6538..24427c0 100644 --- a/progress.go +++ b/progress.go @@ -366,6 +366,11 @@ } switch l := len(s.pool); l { + case 0: + if s.heapUpdated { + s.updateSyncMatrix() + s.heapUpdated = false + } case 1: heap.Push(&s.bHeap, s.pool[0]) default: