From 265afa6cb82946fb56da392b123cf5ae9a34af53 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 26 Mar 2021 01:44:57 +0800 Subject: [PATCH] modify --- System/Crontab/Consumer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/System/Crontab/Consumer.php b/System/Crontab/Consumer.php index 0093161a..e9fa19ff 100644 --- a/System/Crontab/Consumer.php +++ b/System/Crontab/Consumer.php @@ -43,9 +43,9 @@ class Consumer extends Process { $crontab = $this->channel->pop(-1); - var_dump($crontab); - - $this->dispatch($crontab); + go(function () use ($crontab) { + $this->dispatch($crontab); + }); $this->popChannel(); }