Unlock torrent mutex when continuing purge loop.
This commit is contained in:
parent
417d2a3b12
commit
f001489294
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue