diff options
| author | ruki <[email protected]> | 2024-04-08 23:33:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-04-08 23:33:26 +0800 |
| commit | 34ebb2a55c530ec3c050b6dd93e09cef0f6af245 (patch) | |
| tree | d335eeaa5d9affe926b24ccf62ee6b0bf2fdf90f /xmake/modules/async | |
| parent | e962877f593141a16e4bae57e985e9023bd901a6 (diff) | |
fix stuck
Diffstat (limited to 'xmake/modules/async')
| -rw-r--r-- | xmake/modules/async/runjobs.lua | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/xmake/modules/async/runjobs.lua b/xmake/modules/async/runjobs.lua index 35f51a15a..1f59a7359 100644 --- a/xmake/modules/async/runjobs.lua +++ b/xmake/modules/async/runjobs.lua @@ -236,9 +236,6 @@ function main(name, jobs, opt) end count = count + 1 jobfunc(i, total, {progress = progress_wrapper}) - if job then - jobs:remove(job) - end end running_jobs_indices[i] = nil end, @@ -272,6 +269,14 @@ function main(name, jobs, opt) end end end + }, + finally + { + function () + if job then + jobs:remove(job) + end + end } } end, index) |
