mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 21:52:21 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue