Skip to content

Commit 8ac91f4

Browse files
committed
return early if s.aborted
1 parent 0e80546 commit 8ac91f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bar.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func (b *Bar) SetPriority(priority int) {
299299
func (b *Bar) Abort(drop bool) {
300300
select {
301301
case b.operateState <- func(s *bState) {
302-
if s.completed {
302+
if s.completed || s.aborted {
303303
return
304304
}
305305
s.aborted = true

0 commit comments

Comments
 (0)