Fixers
This commit is contained in:
@@ -168,7 +168,7 @@ func (t *TorrentManager) writeTorrentToFile(torrent *Torrent) {
|
||||
return
|
||||
}
|
||||
|
||||
t.log.Debugf("Saved torrent %s to file", torrent.Hash)
|
||||
t.log.Debugf("Saved torrent %s (hash=%s) to file", t.GetKey(torrent), torrent.Hash)
|
||||
}
|
||||
|
||||
func (t *TorrentManager) readTorrentFromFile(hash string) *Torrent {
|
||||
@@ -189,9 +189,6 @@ func (t *TorrentManager) readTorrentFromFile(hash string) *Torrent {
|
||||
if err := json.Unmarshal(jsonData, &torrent); err != nil {
|
||||
return nil
|
||||
}
|
||||
if len(torrent.Components) == 0 {
|
||||
t.log.Fatal("Torrent has no downloaded or in progress ids")
|
||||
}
|
||||
if torrent.Version != t.requiredVersion {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user