This seems to be needed.

This commit is contained in:
aminecmi 2022-12-19 20:47:04 +01:00
parent 633b817d76
commit eb2876324a

View File

@ -47,7 +47,7 @@ class SelfossApi(private val appSettingsService: AppSettingsService) {
}
install(HttpCookies)
install(HttpRequestRetry) {
maxRetries = 1
maxRetries = 2
retryIf { _, response ->
response.status == HttpStatusCode.Forbidden && shouldHavePostLogin() && hasLoginInfo()
}