Made things clearer, as per jgm's suggestion.
This commit is contained in:
parent
2cae7c51a5
commit
3306fc99c1
|
@ -1396,11 +1396,10 @@ local run_threads = coroutine.wrap(function()
|
||||||
else
|
else
|
||||||
core.threads[k] = nil
|
core.threads[k] = nil
|
||||||
end
|
end
|
||||||
elseif wait then
|
else
|
||||||
|
wait = wait or 0
|
||||||
thread.wake = system.get_time() + wait
|
thread.wake = system.get_time() + wait
|
||||||
minimal_time_to_wake = math.min(minimal_time_to_wake, wait)
|
minimal_time_to_wake = math.min(minimal_time_to_wake, wait)
|
||||||
else
|
|
||||||
minimal_time_to_wake = 0
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
minimal_time_to_wake = math.min(minimal_time_to_wake, thread.wake - system.get_time())
|
minimal_time_to_wake = math.min(minimal_time_to_wake, thread.wake - system.get_time())
|
||||||
|
|
Loading…
Reference in New Issue