Skip to content

Commit

Permalink
change to loosey comparison to allow queue to run without --tries
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Tumminello committed Sep 11, 2016
1 parent b5bfac0 commit 43ebd2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ protected function handleJobException($connectionName, $job, WorkerOptions $opti
*/
protected function markJobAsFailedIfAlreadyExceedsMaxAttempts($connectionName, $job, $maxTries)
{
if ($maxTries === 0 || $job->attempts() <= $maxTries) {
if ($maxTries == 0 || $job->attempts() <= $maxTries) {
return;
}

Expand Down

0 comments on commit 43ebd2c

Please sign in to comment.