diff --git a/src/PAMI/Client/Impl/ClientImpl.php b/src/PAMI/Client/Impl/ClientImpl.php index 853e4b746..577e12a89 100644 --- a/src/PAMI/Client/Impl/ClientImpl.php +++ b/src/PAMI/Client/Impl/ClientImpl.php @@ -238,7 +238,7 @@ protected function getMessages() $msgs = array(); // Read something. $read = @fread($this->socket, 65535); - if ($read === false || @feof($this->socket)) { + if ($read === false || !@feof($this->socket)) { throw new ClientException('Error reading'); } $this->currentProcessingMessage .= $read;