Optimize library fetching mechanism
This commit is contained in:
@@ -20,6 +20,9 @@ func (t *TorrentManager) refreshTorrents(initialRun bool) {
|
||||
instances, _, err := t.rd.GetTorrents(false)
|
||||
if err != nil {
|
||||
t.log.Warnf("Cannot get torrents: %v", err)
|
||||
t.log.Info("Retrying in 5 seconds")
|
||||
time.Sleep(5 * time.Second)
|
||||
t.refreshTorrents(initialRun)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user