close response before proceeding chain (#2832)

pull/2801/head
MCAxiaz 5 years ago committed by GitHub
parent 985bb44559
commit bff927c6eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,6 +18,7 @@ class MyAnimeListInterceptor(private val myanimelist: MyAnimeList) : Interceptor
if (response.code == 400) {
myanimelist.refreshLogin()
response.close()
response = chain.proceed(updateRequest(request))
}

Loading…
Cancel
Save