Преглед на файлове

Merge pull request #73 from h4cc/patch-1

Fixed wrong number of iterations.
Marc преди 11 години
родител
ревизия
22f538a78c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;
             }