fix(aria2): retry 5 times for get status (close #1857)
This commit is contained in:
parent
3db798a82a
commit
b8cf02ca68
@ -70,6 +70,8 @@ func (m *Monitor) Update() (bool, error) {
|
||||
info, err := client.TellStatus(m.tsk.ID)
|
||||
if err != nil {
|
||||
m.retried++
|
||||
log.Errorf("failed to get status of %s, retried %d times", m.tsk.ID, m.retried)
|
||||
return false, nil
|
||||
}
|
||||
if m.retried > 5 {
|
||||
return true, errors.Errorf("failed to get status of %s, retried %d times", m.tsk.ID, m.retried)
|
||||
|
Loading…
x
Reference in New Issue
Block a user