From fcac817f115cf3b539c72e492c0c0fce2d7e2e1c Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 8 Dec 2020 00:45:35 +0800 Subject: [PATCH] =?UTF-8?q?Task=E5=BA=93=E7=BB=86=E8=8A=82=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/task.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zframework/task.lua b/Zframework/task.lua index 407c62ff..0ba89f1d 100644 --- a/Zframework/task.lua +++ b/Zframework/task.lua @@ -23,7 +23,7 @@ function TASK.update() end function TASK.new(code,...) local thread=ct.create(code) - if ...~=nil then ct.resume(thread,...)end + ct.resume(thread,...) if ct.status(thread)~="dead"then tasks[#tasks+1]={ thread=thread, @@ -34,7 +34,7 @@ function TASK.new(code,...) end function TASK.newNet(code,...) local thread=ct.create(code) - if ...~=nil then ct.resume(thread,...)end + ct.resume(thread,...) if ct.status(thread)~="dead"then tasks[#tasks+1]={ thread=thread,