Skip to content

Commit a47b432

Browse files
committed
update bee
1 parent 719d7c2 commit a47b432

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

script/pub/pub.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function m.recruitBraves(num, privatePad)
6464
log.debug('Create brave:', id)
6565
m.braves[id] = {
6666
id = id,
67-
thread = thread.thread(braveTemplate:format(
67+
thread = thread.create(braveTemplate:format(
6868
package.path,
6969
package.cpath,
7070
DEVELOP,
@@ -206,8 +206,8 @@ end
206206
--- 检查伤亡情况
207207
function m.checkDead()
208208
while true do
209-
local suc, err = thread.errlog()
210-
if not suc then
209+
local err = thread.errlog()
210+
if not err then
211211
break
212212
end
213213
log.error('Brave is dead!: ' .. err)

0 commit comments

Comments
 (0)