Merge pull request #2060 from 821938089/fix-main-thread-block-bug

修复webDav初始化时可能会阻塞主线程的bug
This commit is contained in:
kunfei authored and GitHub committed 2022-07-11 13:52:27 +08:00
commit d643de2264
1 file changed
+3 -1
@@ -107,7 +107,9 @@ object ReadBook : CoroutineScope by MainScope() {
fun uploadProgress() {
book?.let {
AppWebDav.uploadBookProgress(it)
Coroutine.async {
AppWebDav.uploadBookProgress(it)
}
}
}