Only wait 10min if the server error'd

This commit is contained in:
Till Faelligen 2022-09-05 15:36:58 +02:00
parent bfb8fed8ca
commit cf7da88327
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -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