From f001489294f6ee6d9574bc7f41650c0b75304785 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Wed, 3 Sep 2014 00:52:21 -0400 Subject: [PATCH] Unlock torrent mutex when continuing purge loop. --- tracker/storage.go | 1 + 1 file changed, 1 insertion(+) 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 }