Skip to content

Commit

Permalink
fix endless loop error while reading an empty line from the server
Browse files Browse the repository at this point in the history
  • Loading branch information
kroky committed Aug 29, 2024
1 parent 3590d0f commit 1b2819c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ManageSieve/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1b2819c

Please sign in to comment.