This commit is contained in:
Horis
2022-10-20 11:18:21 +08:00
parent 6a334c19f0
commit 5ca76f4a78
@@ -167,8 +167,10 @@ class HttpReadAloudService : BaseReadAloudService(),
} }
} }
ensureActive() ensureActive()
downloadErrorNo = 0 response.body!!.byteStream().let { stream ->
return response.body!!.byteStream() downloadErrorNo = 0
return stream
}
} catch (e: Exception) { } catch (e: Exception) {
when (e) { when (e) {
is CancellationException -> throw e is CancellationException -> throw e