summaryrefslogtreecommitdiff
path: root/server-beta/src/pub/pub.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-08 14:59:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-08 14:59:03 +0800
commit6b222a0a14135e6f39eb9e80f3c2bf879811ca2c (patch)
treeb9db4a53303fec89dbceab74b0f257f959fe7f5c /server-beta/src/pub/pub.lua
parentd8c8c6ded148a8e130956b08010db3a0cda8585a (diff)
downloadlua-language-server-6b222a0a14135e6f39eb9e80f3c2bf879811ca2c.zip
协作模式改为队列
Diffstat (limited to 'server-beta/src/pub/pub.lua')
-rw-r--r--server-beta/src/pub/pub.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/server-beta/src/pub/pub.lua b/server-beta/src/pub/pub.lua
index 3e97fe9f..19800e95 100644
--- a/server-beta/src/pub/pub.lua
+++ b/server-beta/src/pub/pub.lua
@@ -226,11 +226,9 @@ function m.checkDead()
end
end
-function m.listen()
- timer.loop(0.001, function ()
- m.checkDead()
- m.recieve()
- end)
+function m.step()
+ m.checkDead()
+ m.recieve()
end
return m