mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-15 19:31:37 +00:00
fix: fix dispatcher pending delete logic
This commit is contained in:
parent
32de571acd
commit
b35f62794f
1 changed files with 3 additions and 0 deletions
|
|
@ -250,6 +250,9 @@ func (p *Peer) dispatcher() {
|
||||||
// it can wait for a handler response and dispatch the data.
|
// it can wait for a handler response and dispatch the data.
|
||||||
res.Time = res.recv.Sub(res.Req.Sent)
|
res.Time = res.recv.Sub(res.Req.Sent)
|
||||||
resOp.fail <- nil
|
resOp.fail <- nil
|
||||||
|
|
||||||
|
// Stop tracking the request, the response dispatcher will deliver
|
||||||
|
delete(pending, res.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
case <-p.term:
|
case <-p.term:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue