From 52998e912cad6541d70aa7263337fd6fbbf0d2a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 15 Apr 2021 21:08:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Channel.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/System/Channel.php b/System/Channel.php index d7dec52b..260d9987 100644 --- a/System/Channel.php +++ b/System/Channel.php @@ -37,6 +37,8 @@ class Channel extends Component if ($channel->isFull()) { return $this->addError('Channel is full.'); } + + return true; return $channel->push($value); } @@ -98,9 +100,9 @@ class Channel extends Component return $channel->pop(); } $data = null; - if ($timeout !== null) { - $data = $channel->pop($timeout); - } +// if ($timeout !== null) { +// $data = $channel->pop($timeout); +// } if (empty($data)) { $data = call_user_func($closure); }