mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-03-03 17:03:10 -06:00
Only wait 10min if the server error'd
This commit is contained in:
parent
bfb8fed8ca
commit
cf7da88327
|
|
@ -420,7 +420,7 @@ userLoop:
|
|||
}
|
||||
case gomatrix.HTTPError:
|
||||
// The remote server returned an error, give it some time to recover
|
||||
if e.Code >= 300 {
|
||||
if e.Code >= 500 {
|
||||
waitTime = time.Minute * 10
|
||||
logrus.WithError(e).Error("GetUserDevices returned gomatrix.HTTPError")
|
||||
break userLoop
|
||||
|
|
|
|||
Loading…
Reference in a new issue