Fixed variable $channel might not be defined.

This commit is contained in:
huangzhhui 2021-06-15 14:51:18 +08:00 committed by 李铭昕
parent fec3e1ec2a
commit d3b32aac86

View File

@ -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()) {