diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2024-06-05 17:17:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2024-06-05 17:17:42 +0800 |
commit | bf56967a8c42aedf28d4512a054730e68eb377da (patch) | |
tree | 8f11caba1a53f369d8c7babf91e4f01e3d626fe3 | |
parent | 8932edbb25e40debfb85a86cb524daa3c82bb58a (diff) | |
download | lua-language-server-bf56967a8c42aedf28d4512a054730e68eb377da.zip |
Revert "update bee"
This reverts commit a47b432b13f1d4bfa415185bb305b3672bc22d7d.
m--------- | 3rd/bee.lua | 0 | ||||
-rw-r--r-- | script/pub/pub.lua | 6 |
2 files changed, 3 insertions, 3 deletions
diff --git a/3rd/bee.lua b/3rd/bee.lua -Subproject c300419b9bfc64d51e0bd072911551788610f74 +Subproject b4fda4e0865d4369c845015ab2ad45573d6ba24 diff --git a/script/pub/pub.lua b/script/pub/pub.lua index 9ec0b772..ef9e4b41 100644 --- a/script/pub/pub.lua +++ b/script/pub/pub.lua @@ -66,7 +66,7 @@ function m.recruitBraves(num, privatePad) log.debug('Create brave:', id) m.braves[id] = { id = id, - thread = thread.create(braveTemplate:format( + thread = thread.thread(braveTemplate:format( package.path, package.cpath, DEVELOP, @@ -208,8 +208,8 @@ end --- 检查伤亡情况 function m.checkDead() while true do - local err = thread.errlog() - if not err then + local suc, err = thread.errlog() + if not suc then break end log.error('Brave is dead!: ' .. err) |