This commit is contained in:
InsanusMokrassar 2020-08-29 19:11:57 +06:00
parent 69bfa56692
commit cbd6651c67

View File

@ -67,7 +67,7 @@ data class SauceNaoAPI(
requestsChannel.send(callback to requestBuilder)
} catch (e: Exception) {
try {
callback.resume(e)
callback.resumeWithException(e)
} catch (e: IllegalStateException) { // may happen when already resumed and api was closed
// do nothing
}