p2p/tracker: properly clean up fulfilled requests

pull/22751/head
Martin Holst Swende 4 years ago
parent caea6c4661
commit 45fca44c24
No known key found for this signature in database
GPG Key ID: 683B438C05A5DDF0
  1. 1
      p2p/tracker/tracker.go

@ -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()

Loading…
Cancel
Save