fix nil pointer dereference
Bar.bs is assigned at the end of life, so it's nil on queued (new) bar.
Vladimir Bauer
3 years ago
| 272 | 272 |
if qb, ok := s.queueBars[b]; ok {
|
| 273 | 273 |
delete(s.queueBars, b)
|
| 274 | 274 |
qb.priority = b.priority
|
| 275 | |
qb.bs.dropOnComplete = drop
|
| 276 | 275 |
pool = append(pool, qb)
|
| 277 | 276 |
drop = true
|
| 278 | 277 |
} else if s.popCompleted && !b.bs.noPop {
|