Commit d4a28a13 authored by Felföldi Zsolt's avatar Felföldi Zsolt Committed by Felix Lange

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

parent 86a03f97
...@@ -114,7 +114,9 @@ func (d *requestDistributor) loop() { ...@@ -114,7 +114,9 @@ func (d *requestDistributor) loop() {
d.lock.Lock() d.lock.Lock()
elem := d.reqQueue.Front() elem := d.reqQueue.Front()
for elem != nil { for elem != nil {
close(elem.Value.(*distReq).sentChn) req := elem.Value.(*distReq)
close(req.sentChn)
req.sentChn = nil
elem = elem.Next() elem = elem.Next()
} }
d.lock.Unlock() d.lock.Unlock()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment