Browse Source

reset checkTimes

malacca 7 years ago
parent
commit
2dacceeef7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Worker.php

+ 2 - 0
Worker.php

@@ -1487,6 +1487,8 @@ class Worker
                         }
                         if ($allExited) {
                             static::exitAndClearAll();
+                        } else {
+                            $checkTimes = 0;
                         }
                     }
                     $checkTimes++;