mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
Merge pull request #2060 from 821938089/fix-main-thread-block-bug
修复webDav初始化时可能会阻塞主线程的bug
This commit is contained in:
@@ -107,7 +107,9 @@ object ReadBook : CoroutineScope by MainScope() {
|
||||
|
||||
fun uploadProgress() {
|
||||
book?.let {
|
||||
AppWebDav.uploadBookProgress(it)
|
||||
Coroutine.async {
|
||||
AppWebDav.uploadBookProgress(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user