summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-09 17:14:36 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-09 17:14:36 +0800
commit477876c1d89bc8e14cf72d053ade2358ab446d07 (patch)
treea1de9388e14d074b6d46a68325a456e6fabe7cb0 /script
parent69325ab496305c35a34078ae7fb491175c1b09ba (diff)
downloadlua-language-server-477876c1d89bc8e14cf72d053ade2358ab446d07.zip
will not sleep anymore
Diffstat (limited to 'script')
-rw-r--r--script/service/service.lua22
1 files changed, 11 insertions, 11 deletions
diff --git a/script/service/service.lua b/script/service/service.lua
index 8278bbbe..ed83a27a 100644
--- a/script/service/service.lua
+++ b/script/service/service.lua
@@ -160,17 +160,17 @@ function m.startTimer()
end
function m.pulse()
- timer.loop(10, function ()
- if not m.workingClock and not m.sleeping and time.monotonic() - m.idleClock >= 300000 then
- m.sleeping = true
- files.flushCache()
- vm.flushCache()
- ws.flushCache()
- collectgarbage()
- collectgarbage()
- end
- m.reportStatus()
- end)
+ --timer.loop(10, function ()
+ -- if not m.workingClock and not m.sleeping and time.monotonic() - m.idleClock >= 300000 then
+ -- m.sleeping = true
+ -- files.flushCache()
+ -- vm.flushCache()
+ -- ws.flushCache()
+ -- collectgarbage()
+ -- collectgarbage()
+ -- end
+ -- m.reportStatus()
+ --end)
timer.loop(0.1, function ()
m.reportStatus()
end)