mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 03:32:38 +08:00
perf: upload job
This commit is contained in:
parent
ab8afcefae
commit
bca49d3cc0
|
@ -66,7 +66,7 @@ class UploadOptions(
|
|||
}
|
||||
|
||||
fun startTask(file: File) {
|
||||
if (job == null && statusFlow.value is LoadStatus.Loading) {
|
||||
if (job != null || statusFlow.value is LoadStatus.Loading) {
|
||||
return
|
||||
}
|
||||
job = buildTask(file)
|
||||
|
|
Loading…
Reference in New Issue
Block a user