diff --git a/bar.go b/bar.go index 7a91814..4d4a4da 100644 --- a/bar.go +++ b/bar.go @@ -418,6 +418,8 @@ case <-b.ctx.Done(): decoratorsOnShutdown(bs.decorators[0]) decoratorsOnShutdown(bs.decorators[1]) + // bar can be aborted by canceling parent ctx + // without actually calling b.Abort bs.aborted = !bs.completed() b.bs = bs close(b.bsOk)