mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-25 01:35:14 +00:00
Don't return from pruneDeadWorkers if there are no worker pids
This commit is contained in:
parent
b71031908d
commit
94fed1cfb4
@ -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…
Reference in New Issue
Block a user