diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-08 14:59:03 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-08 14:59:03 +0800 |
commit | 6b222a0a14135e6f39eb9e80f3c2bf879811ca2c (patch) | |
tree | b9db4a53303fec89dbceab74b0f257f959fe7f5c /server-beta/src/pub/pub.lua | |
parent | d8c8c6ded148a8e130956b08010db3a0cda8585a (diff) | |
download | lua-language-server-6b222a0a14135e6f39eb9e80f3c2bf879811ca2c.zip |
协作模式改为队列
Diffstat (limited to 'server-beta/src/pub/pub.lua')
-rw-r--r-- | server-beta/src/pub/pub.lua | 8 |
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 |