diff --git a/.gitignore b/.gitignore index aefac54..f6f3f8a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ *.un~ .cache .cache/* +composer.lock +vendor/ diff --git a/lib/Phirehose.php b/lib/Phirehose.php index 7ada65e..f850462 100644 --- a/lib/Phirehose.php +++ b/lib/Phirehose.php @@ -518,8 +518,8 @@ public function consume($reconnect = TRUE) pcntl_signal_dispatch(); } - // Some sort of socket error has occured - $this->lastErrorNo = is_resource($this->conn) ? @socket_last_error($this->conn) : NULL; + // Some sort of socket error has occurred + $this->lastErrorNo = is_resource($this->conn) ? @socket_last_error() : NULL; $this->lastErrorMsg = ($this->lastErrorNo > 0) ? @socket_strerror($this->lastErrorNo) : 'Socket disconnected'; $this->log('Phirehose connection error occured: ' . $this->lastErrorMsg,'error');