summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-10-05 22:05:27 +0800
committerruki <[email protected]>2025-10-05 22:05:27 +0800
commitb7d1d608c3705bed8c44f8f5147f1f384475357f (patch)
treed3b264bf0c54df2b5605395e8a65ff694db2f333
parent0d3e6542776c0b90e24b594a022e8746c8ec2065 (diff)
fix runjob index
-rw-r--r--xmake/modules/async/runjobs.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/async/runjobs.lua b/xmake/modules/async/runjobs.lua
index cdcc2067d..7b0bc3524 100644
--- a/xmake/modules/async/runjobs.lua
+++ b/xmake/modules/async/runjobs.lua
@@ -159,7 +159,7 @@ function _comsume_jobs_loop(state)
{
function ()
-- run job
- local job_index = state.finished_count
+ local job_index = state.finished_count + 1
state.running_jobs_indices[job_index] = job_index
if job_func then
if curdir then