Make resting the delay
This commit is contained in:
parent
d54f914d7a
commit
fa7e2cd107
@ -45,7 +45,7 @@ end
|
|||||||
function minetest.async.schedule_worker()
|
function minetest.async.schedule_worker()
|
||||||
minetest.async.state = "running"
|
minetest.async.state = "running"
|
||||||
for index,value in ipairs(minetest.async.threads) do
|
for index,value in ipairs(minetest.async.threads) do
|
||||||
minetest.after(0,minetest.async.run_worker,index)
|
minetest.after(minetest.async.resting,minetest.async.run_worker,index)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
minetest.async.state = "suspended"
|
minetest.async.state = "suspended"
|
||||||
|
Loading…
Reference in New Issue
Block a user