mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-09 12:59:34 +02:00
close response before proceeding chain (#2832)
This commit is contained in:
@@ -18,6 +18,7 @@ class MyAnimeListInterceptor(private val myanimelist: MyAnimeList) : Interceptor
|
|||||||
|
|
||||||
if (response.code == 400) {
|
if (response.code == 400) {
|
||||||
myanimelist.refreshLogin()
|
myanimelist.refreshLogin()
|
||||||
|
response.close()
|
||||||
response = chain.proceed(updateRequest(request))
|
response = chain.proceed(updateRequest(request))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user