Ignore error when fetching downloads
This commit is contained in:
@@ -206,7 +206,9 @@ func (t *TorrentManager) mountDownloads() {
|
||||
for {
|
||||
downloads, totalDownloads, err := t.Api.GetDownloads(page, offset)
|
||||
if err != nil {
|
||||
t.log.Fatalf("Cannot get downloads: %v", err)
|
||||
// if we get an error, we just stop
|
||||
t.log.Warnf("Cannot get downloads on page %d: %v", page, err)
|
||||
continue
|
||||
}
|
||||
for i := range downloads {
|
||||
t.DownloadMap.Set(downloads[i].Filename, &downloads[i])
|
||||
|
||||
Reference in New Issue
Block a user