From 5ac7e90374c86f99956890f4a28d98a39feb5f03 Mon Sep 17 00:00:00 2001 From: Chris Boulton Date: Mon, 19 Apr 2010 14:57:14 +1000 Subject: [PATCH] Fix cannot break/continue error when pruning dead workers and none are found. continue should have been return --- lib/Resque/Worker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Resque/Worker.php b/lib/Resque/Worker.php index 1ee24a9..13a281f 100644 --- a/lib/Resque/Worker.php +++ b/lib/Resque/Worker.php @@ -424,7 +424,7 @@ class Resque_Worker { $workerPids = $this->workerPids(); if(empty($workerPids)) { - continue; + return; } $workers = self::all(); foreach($workers as $worker) {