Made event.pull() with a timeout of 0 not yield.

This makes sense because if the timeout is 0, the app calling it
obviously just wants to fetch any pending events and not wait.
This commit is contained in:
2025-09-30 15:26:35 +03:00
parent 58c8ce3f2d
commit cd3dd80c23
+3 -1
View File
@@ -48,7 +48,9 @@ function event.pull(...)
end
-- Yield to allow other processes to run and more events to be added
coroutine.yield()
if timeout and timeout > 0 then
coroutine.yield()
end
end
end