Check for other broken files when repairing
This commit is contained in:
@@ -159,7 +159,7 @@ func (t *TorrentManager) refreshTorrents() []string {
|
||||
return false
|
||||
})
|
||||
existingIDs.Difference(freshIDs).Each(func(id string) bool {
|
||||
t.log.Infof("Deleting stale info file %s", id)
|
||||
// t.log.Infof("Deleting stale info file %s", id)
|
||||
t.deleteInfoFile(id)
|
||||
return false
|
||||
})
|
||||
@@ -498,8 +498,6 @@ func (t *TorrentManager) persistBins() {
|
||||
_, err = file.Write(jsonData)
|
||||
if err != nil {
|
||||
t.log.Errorf("Failed to write to bins.json file: %v", err)
|
||||
} else {
|
||||
t.log.Debug("Successfully saved bins to file")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user