From bf56967a8c42aedf28d4512a054730e68eb377da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 5 Jun 2024 17:17:42 +0800 Subject: Revert "update bee" This reverts commit a47b432b13f1d4bfa415185bb305b3672bc22d7d. --- script/pub/pub.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'script/pub/pub.lua') 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) -- cgit v1.2.3