Log updates
This commit is contained in:
@@ -22,9 +22,7 @@ func (t *TorrentManager) CheckDeletedStatus(torrent *Torrent) bool {
|
||||
|
||||
func (t *TorrentManager) Delete(accessKey string, deleteInRD bool) {
|
||||
allTorrents, _ := t.DirectoryMap.Get(INT_ALL)
|
||||
var hash string
|
||||
if torrent, ok := allTorrents.Get(accessKey); ok {
|
||||
hash = torrent.Hash
|
||||
if deleteInRD {
|
||||
torrent.DownloadedIDs.Each(func(torrentID string) bool {
|
||||
t.log.Debugf("Deleting torrent %s (id=%s) in RD", accessKey, torrentID)
|
||||
@@ -40,7 +38,4 @@ func (t *TorrentManager) Delete(accessKey string, deleteInRD bool) {
|
||||
torrents.Remove(accessKey)
|
||||
})
|
||||
allTorrents.Remove(accessKey)
|
||||
if hash != "" {
|
||||
t.deleteTorrentFile(hash)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user