Merge remote-tracking branch 'origin/master'

pull/2462/head
kunfei 2 years ago
commit fecc60885e
  1. 6
      app/src/main/java/io/legado/app/service/HttpReadAloudService.kt

@ -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

Loading…
Cancel
Save