Unverified Commit 55043eec authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub

Merge pull request #22751 from holiman/tracker_fix

p2p/tracker: properly clean up fulfilled requests
parents caea6c46 45fca44c
...@@ -186,6 +186,7 @@ func (t *Tracker) Fulfil(peer string, version uint, code uint64, id uint64) { ...@@ -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()
......
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