cannot be already aborted inside Abort call
Vladimir Bauer
4 years ago
1 changed file(s) with
1 addition(s)
and
1 deletion(s)
.
Raw diff
Collapse all
Expand all
+1
-1
bar.go
less
more
270
270
func (b *Bar) Abort(drop bool) {
271
271
select {
272
272
case b.operateState <- func(s *bState) {
273
if s.completed || s.aborted {
273
if s.completed {
274
274
return
275
275
}
276
276
s.aborted = true