mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
Don't return from pruneDeadWorkers if there are no worker pids
This commit is contained in:
parent
b71031908d
commit
94fed1cfb4
1 changed files with 0 additions and 3 deletions
|
@ -423,9 +423,6 @@ class Resque_Worker
|
|||
public function pruneDeadWorkers()
|
||||
{
|
||||
$workerPids = $this->workerPids();
|
||||
if(empty($workerPids)) {
|
||||
return;
|
||||
}
|
||||
$workers = self::all();
|
||||
foreach($workers as $worker) {
|
||||
list($host, $pid, $queues) = explode(':', (string)$worker, 3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue