From d3b32aac865d661fdce76ecf61763692e1cc82c6 Mon Sep 17 00:00:00 2001 From: huangzhhui Date: Tue, 15 Jun 2021 14:51:18 +0800 Subject: [PATCH] Fixed variable $channel might not be defined. --- src/utils/src/Channel/Caller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/src/Channel/Caller.php b/src/utils/src/Channel/Caller.php index d7626997d..7184b55b8 100644 --- a/src/utils/src/Channel/Caller.php +++ b/src/utils/src/Channel/Caller.php @@ -43,8 +43,8 @@ class Caller public function call(Closure $closure) { $release = true; + $channel = $this->channel; try { - $channel = $this->channel; $instance = $channel->pop($this->waitTimeout); if ($instance === false) { if ($channel->isClosing()) {