mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-09 01:26:36 +00:00
p2p/tracker: properly clean up fulfilled requests
This commit is contained in:
parent
caea6c4661
commit
45fca44c24
1 changed files with 1 additions and 0 deletions
|
|
@ -186,6 +186,7 @@ func (t *Tracker) Fulfil(peer string, version uint, code uint64, id uint64) {
|
||||||
}
|
}
|
||||||
// Everything matches, mark the request serviced and meter it
|
// Everything matches, mark the request serviced and meter it
|
||||||
t.expire.Remove(req.expire)
|
t.expire.Remove(req.expire)
|
||||||
|
delete(t.pending, id)
|
||||||
if req.expire.Prev() == nil {
|
if req.expire.Prev() == nil {
|
||||||
t.wake.Stop()
|
t.wake.Stop()
|
||||||
t.schedule()
|
t.schedule()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue