mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 08:15:14 +00:00
Fix cannot break/continue error when pruning dead workers and none are found. continue should have been return
This commit is contained in:
parent
86a5d88309
commit
5ac7e90374
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user