diff --git a/src/ManageSieve/Client.php b/src/ManageSieve/Client.php index 236fc17..b755520 100644 --- a/src/ManageSieve/Client.php +++ b/src/ManageSieve/Client.php @@ -91,7 +91,7 @@ private function readLine() { try { $nval = \fread($this->sock, $this->readSize); - if ($nval === false) { + if ($nval === false || $nval === "") { break; } $this->readBuffer .= $nval;