Skip to content

Commit

Permalink
p2p/tracker: properly clean up fulfilled requests
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Apr 27, 2021
1 parent caea6c4 commit 45fca44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/tracker/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
t.expire.Remove(req.expire)
delete(t.pending, id)
if req.expire.Prev() == nil {
t.wake.Stop()
t.schedule()
Expand Down

0 comments on commit 45fca44

Please sign in to comment.