les: fix distReq.sentChn double close bug (#17639)

pull/17670/merge
Felföldi Zsolt 6 years ago committed by Felix Lange
parent 86a03f97d3
commit d4a28a13ca
  1. 4
      les/distributor.go

@ -114,7 +114,9 @@ func (d *requestDistributor) loop() {
d.lock.Lock()
elem := d.reqQueue.Front()
for elem != nil {
close(elem.Value.(*distReq).sentChn)
req := elem.Value.(*distReq)
close(req.sentChn)
req.sentChn = nil
elem = elem.Next()
}
d.lock.Unlock()

Loading…
Cancel
Save