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