diff --git a/progress.go b/progress.go index a6568a5..c08a8fd 100644 --- a/progress.go +++ b/progress.go @@ -356,7 +356,10 @@ break loop } case <-quit: - return + if len(widths) == 0 { + return + } + break loop } } result := max(widths)