Merge pull request #2060 from 821938089/fix-main-thread-block-bug
修复webDav初始化时可能会阻塞主线程的bug
This commit is contained in:
@@ -107,9 +107,11 @@ object ReadBook : CoroutineScope by MainScope() {
|
|||||||
|
|
||||||
fun uploadProgress() {
|
fun uploadProgress() {
|
||||||
book?.let {
|
book?.let {
|
||||||
|
Coroutine.async {
|
||||||
AppWebDav.uploadBookProgress(it)
|
AppWebDav.uploadBookProgress(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun upReadTime() {
|
fun upReadTime() {
|
||||||
Coroutine.async {
|
Coroutine.async {
|
||||||
|
|||||||
Reference in New Issue
Block a user