Skip to content

Commit

Permalink
Fixed wrong number of iterations.
Browse files Browse the repository at this point in the history
There were always one too much iterations than configured.
  • Loading branch information
h4cc committed Dec 12, 2013
1 parent c8e3292 commit 9e363bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Service/GearmanExecute.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private function runJob(\GearmanWorker $gearmanWorker, $objInstance, array $jobs
/**
* Only finishes its execution if alive is false and iterations arrives to 0
*/
if (!$alive && $iterations-- <= 0) {
if (!$alive && --$iterations <= 0) {

break;
}
Expand Down

0 comments on commit 9e363bc

Please sign in to comment.