Fix cannot break/continue error when pruning dead workers and none are found. continue should have been return

This commit is contained in:
Chris Boulton 2010-04-19 14:57:14 +10:00
parent 86a5d88309
commit 5ac7e90374

View File

@ -424,7 +424,7 @@ class Resque_Worker
{ {
$workerPids = $this->workerPids(); $workerPids = $this->workerPids();
if(empty($workerPids)) { if(empty($workerPids)) {
continue; return;
} }
$workers = self::all(); $workers = self::all();
foreach($workers as $worker) { foreach($workers as $worker) {