This commit is contained in:
Horis
2022-10-20 11:18:21 +08:00
parent 234c011758
commit 63ff8e2ec0

View File

@@ -167,8 +167,10 @@ class HttpReadAloudService : BaseReadAloudService(),
}
}
ensureActive()
downloadErrorNo = 0
return response.body!!.byteStream()
response.body!!.byteStream().let { stream ->
downloadErrorNo = 0
return stream
}
} catch (e: Exception) {
when (e) {
is CancellationException -> throw e