Skip to content

Commit 45fca44

Browse files
committed
p2p/tracker: properly clean up fulfilled requests
1 parent caea6c4 commit 45fca44

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎p2p/tracker/tracker.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ func (t *Tracker) Fulfil(peer string, version uint, code uint64, id uint64) {
186186
}
187187
// Everything matches, mark the request serviced and meter it
188188
t.expire.Remove(req.expire)
189+
delete(t.pending, id)
189190
if req.expire.Prev() == nil {
190191
t.wake.Stop()
191192
t.schedule()

0 commit comments

Comments
 (0)