Fix logic of fetching torrents
This commit is contained in:
@@ -33,7 +33,7 @@ func (t *TorrentManager) Delete(accessKey string, deleteInRD bool) {
|
||||
if torrent, ok := allTorrents.Get(accessKey); ok {
|
||||
torrent.DownloadedIDs.Union(torrent.InProgressIDs).Each(func(id string) bool {
|
||||
t.log.Debugf("Deleting torrent %s (id=%s) in RD", accessKey, id)
|
||||
t.Api.DeleteTorrent(id)
|
||||
t.api.DeleteTorrent(id)
|
||||
infoCache.Remove(id)
|
||||
t.deleteTorrentFile(id)
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user