Skip to content

Commit

Permalink
Update ZMQ.php
Browse files Browse the repository at this point in the history
swoole#3

Corrected invalid reference to `$this->buffer` property
  • Loading branch information
developer-nichemarketing authored Mar 30, 2020
1 parent 7313be1 commit 986605c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Swoole/Async/ZMQ.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function handleReadEvent()
{
$events = $this->socket->getSockOpt(\ZMQ::SOCKOPT_EVENTS);

$hasEvents = ($events & \ZMQ::POLL_IN) || ($events & \ZMQ::POLL_OUT && $this->buffer->listening);
$hasEvents = ($events & \ZMQ::POLL_IN) || ($events & \ZMQ::POLL_OUT && $this->listening);
if (!$hasEvents)
{
break;
Expand Down Expand Up @@ -224,4 +224,4 @@ public function handleWriteEvent()
class ZMQException extends \RuntimeException
{

}
}

0 comments on commit 986605c

Please sign in to comment.