We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 405d125 + 8d9b94e commit b7a4171Copy full SHA for b7a4171
.gitignore
@@ -2,3 +2,5 @@
2
*.un~
3
.cache
4
.cache/*
5
+composer.lock
6
+vendor/
lib/Phirehose.php
@@ -518,8 +518,8 @@ public function consume($reconnect = TRUE)
518
pcntl_signal_dispatch();
519
}
520
521
- // Some sort of socket error has occured
522
- $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;
523
$this->lastErrorMsg = ($this->lastErrorNo > 0) ? @socket_strerror($this->lastErrorNo) : 'Socket disconnected';
524
$this->log('Phirehose connection error occured: ' . $this->lastErrorMsg,'error');
525
0 commit comments