Merge remote-tracking branch 'origin/master'

This commit is contained in:
kunfei
2022-10-20 14:09:08 +08:00

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