diff --git a/bar.go b/bar.go index 93ac0a2..4b91e76 100644 --- a/bar.go +++ b/bar.go @@ -340,7 +340,7 @@ func (b *Bar) serve(ctx context.Context, bs *bState) { defer b.container.bwg.Done() if bs.afterBar != nil && bs.sync { - <-bs.afterBar.done + bs.afterBar.Wait() } for { select {