Skip to content

Commit

Permalink
Small simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Mar 3, 2014
1 parent f704bae commit 3879e27
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions class.smtp.php
Expand Up @@ -845,16 +845,14 @@ protected function get_lines()
break;
}
// Now check if reads took too long
if ($endtime) {
if (time() > $endtime) {
if ($this->do_debug >= 4) {
$this->edebug(
'SMTP -> get_lines(): timelimit reached ('.
$this->Timelimit . ' sec)'
);
}
break;
if ($endtime and time() > $endtime) {
if ($this->do_debug >= 4) {
$this->edebug(
'SMTP -> get_lines(): timelimit reached ('.
$this->Timelimit . ' sec)'
);
}
break;
}
}
return $data;
Expand Down

0 comments on commit 3879e27

Please sign in to comment.