mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user