Skip to content

Commit

Permalink
Merge pull request #30 from khelle/handleevent-fix
Browse files Browse the repository at this point in the history
Fixes calling method on non-object in handleEvent method
  • Loading branch information
WyriHaximus authored Sep 30, 2017
2 parents f691311 + 41abbe9 commit 3926b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SocketWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function attachReadListener()

public function handleEvent()
{
while (true) {
while ($this->socket !== null) {
$events = $this->socket->getSockOpt(ZMQ::SOCKOPT_EVENTS);

$isPollIn = $events & ZMQ::POLL_IN;
Expand Down

0 comments on commit 3926b25

Please sign in to comment.