浏览代码

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;
             }