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 /script/pub/pub.lua | |
parent | 8932edbb25e40debfb85a86cb524daa3c82bb58a (diff) | |
download | lua-language-server-bf56967a8c42aedf28d4512a054730e68eb377da.zip |
Revert "update bee"
This reverts commit a47b432b13f1d4bfa415185bb305b3672bc22d7d.
Diffstat (limited to 'script/pub/pub.lua')
-rw-r--r-- | script/pub/pub.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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) |