Selaa lähdekoodia

Fixed wrong number of iterations.

There were always one too much iterations than configured.
Julius Beckmann 11 vuotta sitten
vanhempi
commit
9e363bc3ec
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Service/GearmanExecute.php

+ 1 - 1
Service/GearmanExecute.php

@@ -167,7 +167,7 @@ class GearmanExecute extends AbstractGearmanService
             /**
              * Only finishes its execution if alive is false and iterations arrives to 0
              */
-            if (!$alive && $iterations-- <= 0) {
+            if (!$alive && --$iterations <= 0) {
 
                 break;
             }