summaryrefslogtreecommitdiff
path: root/script/service
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-27 11:56:01 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-27 11:56:01 +0800
commitd58bd9064a60ebfb6d2dbe97b383e28f0a8fc34a (patch)
tree53639b574d4e195795611ce0a8af733626dd39ca /script/service
parent3715635806ae4680a81746d46e3714a4d06b0f5d (diff)
downloadlua-language-server-d58bd9064a60ebfb6d2dbe97b383e28f0a8fc34a.zip
Fair treatment of timers
Diffstat (limited to 'script/service')
-rw-r--r--script/service/service.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/service/service.lua b/script/service/service.lua
index 41c8e7bf..1fcfa340 100644
--- a/script/service/service.lua
+++ b/script/service/service.lua
@@ -135,12 +135,12 @@ end
function m.startTimer()
while true do
- ::CONTINUE::
pub.step()
if await.step() then
goto CONTINUE
end
thread.sleep(0.001)
+ ::CONTINUE::
timer.update()
end
end