mirror of
https://github.com/LBRYFoundation/tracker.git
synced 2025-08-28 16:01:32 +00:00
Switch deleted torrent event
This commit is contained in:
parent
2c8894fbda
commit
dc76657af3
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ func (tkr *Tracker) HandleAnnounce(ann *models.Announce, w Writer) error {
|
||||||
// Rather than deleting the torrent explicitly, let the tracker driver
|
// Rather than deleting the torrent explicitly, let the tracker driver
|
||||||
// ensure there are no race conditions.
|
// ensure there are no race conditions.
|
||||||
conn.PurgeInactiveTorrent(torrent.Infohash)
|
conn.PurgeInactiveTorrent(torrent.Infohash)
|
||||||
stats.RecordEvent(stats.ReapedTorrent)
|
stats.RecordEvent(stats.DeletedTorrent)
|
||||||
}
|
}
|
||||||
|
|
||||||
return w.WriteAnnounce(newAnnounceResponse(ann, peer, torrent))
|
return w.WriteAnnounce(newAnnounceResponse(ann, peer, torrent))
|
||||||
|
|
Loading…
Add table
Reference in a new issue