We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f71265e commit 353cbc1Copy full SHA for 353cbc1
script/service/service.lua
@@ -165,12 +165,13 @@ function m.eventLoop()
165
end
166
167
local function doSomething()
168
+ timer.update()
169
pub.step(false)
- if not await.step() then
170
- return false
+ if await.step() then
171
+ busy()
172
+ return true
173
- busy()
- return true
174
+ return false
175
176
177
local function sleep()
@@ -185,10 +186,6 @@ function m.eventLoop()
185
186
187
188
while true do
- if doSomething() then
189
- goto CONTINUE
190
- end
191
- timer.update()
192
if doSomething() then
193
goto CONTINUE
194
0 commit comments