Skip to content

Commit

Permalink
* bugfix: #18038 (break infinite loop)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.php.net/repository/pear/packages/Mail_Queue/trunk@309126 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
till committed Mar 11, 2011
1 parent b61bd4c commit ee9d290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mail/Queue.php
Expand Up @@ -376,7 +376,7 @@ function sendMailsInQueue($limit = MAILQUEUE_ALL, $offset = MAILQUEUE_START,
}

$this->container->setOption($limit, $offset, $try);
while ($mail = $this->get()) {
while ($mail = $this->get() && !Pear::isError($mail)) {
$this->container->countSend($mail);

$result = $this->sendMail($mail, true);
Expand Down

0 comments on commit ee9d290

Please sign in to comment.