diff --git a/progress.go b/progress.go index ac1ce50..d7a5aa1 100644 --- a/progress.go +++ b/progress.go @@ -8,6 +8,7 @@ "io" "io/ioutil" "log" + "math" "os" "sync" "time" @@ -370,7 +371,7 @@ } if s.popCompleted && !bs.noPop { - bs.priority = -1 + bs.priority = -(math.MaxInt32 - s.idCount) } bs.bufP = bytes.NewBuffer(make([]byte, 0, 128))