From 94fed1cfb41a8ecbd54a80299371604b80d51f51 Mon Sep 17 00:00:00 2001 From: Chris Boulton Date: Mon, 19 Apr 2010 15:44:46 +1000 Subject: [PATCH] Don't return from pruneDeadWorkers if there are no worker pids --- lib/Resque/Worker.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/Resque/Worker.php b/lib/Resque/Worker.php index 13a281f..6779470 100644 --- a/lib/Resque/Worker.php +++ b/lib/Resque/Worker.php @@ -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);