mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-29 12:37:50 +02:00
Minor cleanup
This commit is contained in:
@ -83,6 +83,7 @@ suspend fun Call.await(): Response {
|
||||
override fun onFailure(call: Call, e: IOException) {
|
||||
// Don't bother with resuming the continuation if it is already cancelled.
|
||||
if (continuation.isCancelled) return
|
||||
|
||||
continuation.resumeWithException(e)
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user