Ignore error when fetching downloads
This commit is contained in:
@@ -206,7 +206,9 @@ func (t *TorrentManager) mountDownloads() {
|
|||||||
for {
|
for {
|
||||||
downloads, totalDownloads, err := t.Api.GetDownloads(page, offset)
|
downloads, totalDownloads, err := t.Api.GetDownloads(page, offset)
|
||||||
if err != nil {
|
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 {
|
for i := range downloads {
|
||||||
t.DownloadMap.Set(downloads[i].Filename, &downloads[i])
|
t.DownloadMap.Set(downloads[i].Filename, &downloads[i])
|
||||||
|
|||||||
Reference in New Issue
Block a user