From 6fffb8988a4e249b512e562de8c32df73567919e Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 2 May 2021 05:29:32 +0800 Subject: [PATCH] modify --- System/Channel.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/System/Channel.php b/System/Channel.php index 5014a906..bda439ab 100644 --- a/System/Channel.php +++ b/System/Channel.php @@ -76,9 +76,7 @@ class Channel extends Component */ public function pop(string $name, Closure $closure): mixed { - if (($channel = $this->channelInit($name)) == false) { - return $this->addError('Channel is full.'); - } + $channel = $this->channelInit($name); if ($channel->isEmpty()) { return call_user_func($closure); }