perf: upload job

This commit is contained in:
lisonge 2024-08-07 21:14:12 +08:00
parent ab8afcefae
commit bca49d3cc0

View File

@ -66,7 +66,7 @@ class UploadOptions(
} }
fun startTask(file: File) { fun startTask(file: File) {
if (job == null && statusFlow.value is LoadStatus.Loading) { if (job != null || statusFlow.value is LoadStatus.Loading) {
return return
} }
job = buildTask(file) job = buildTask(file)