summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authoractboy168 <actboy168@gmail.com>2024-05-08 22:19:49 +0800
committeractboy168 <actboy168@gmail.com>2024-05-08 22:19:49 +0800
commita47b432b13f1d4bfa415185bb305b3672bc22d7d (patch)
tree5f95d299c8b4d04a9fdc8bf0f5b70fc8ddb96544 /script
parent719d7c2ba63c5a0207604a40cdf0b78a02b0eb78 (diff)
downloadlua-language-server-a47b432b13f1d4bfa415185bb305b3672bc22d7d.zip
update bee
Diffstat (limited to 'script')
-rw-r--r--script/pub/pub.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/pub/pub.lua b/script/pub/pub.lua
index e8be65cd..e8051d05 100644
--- a/script/pub/pub.lua
+++ b/script/pub/pub.lua
@@ -64,7 +64,7 @@ function m.recruitBraves(num, privatePad)
log.debug('Create brave:', id)
m.braves[id] = {
id = id,
- thread = thread.thread(braveTemplate:format(
+ thread = thread.create(braveTemplate:format(
package.path,
package.cpath,
DEVELOP,
@@ -206,8 +206,8 @@ end
--- 检查伤亡情况
function m.checkDead()
while true do
- local suc, err = thread.errlog()
- if not suc then
+ local err = thread.errlog()
+ if not err then
break
end
log.error('Brave is dead!: ' .. err)