diff --git a/tracker/storage.go b/tracker/storage.go index fe38424..5cc2a65 100644 --- a/tracker/storage.go +++ b/tracker/storage.go @@ -177,6 +177,7 @@ func (s *Storage) PurgeInactivePeers(purgeEmptyTorrents bool, before time.Time) if torrent == nil { // The torrent has already been deleted since keys were computed. + s.torrentsM.Unlock() continue }