mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-08 14:50:51 -04:00
fix os.sleep(0)
causing too long without yielding
This commit is contained in:
parent
a181c38991
commit
76d7abe74f
@ -143,7 +143,7 @@ function event.pullFiltered(...)
|
||||
local deadline = computer.uptime() + (seconds or math.huge)
|
||||
repeat
|
||||
local waitTime = deadline - computer.uptime()
|
||||
if waitTime <= 0 then
|
||||
if waitTime < 0 then
|
||||
break
|
||||
end
|
||||
local signal = table.pack(computer.pullSignal(waitTime))
|
||||
|
Loading…
x
Reference in New Issue
Block a user