Explorar o código

Fixed wrong number of iterations.

There were always one too much iterations than configured.
Julius Beckmann %!s(int64=11) %!d(string=hai) anos
pai
achega
9e363bc3ec
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
             }