mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 21:52:21 +00:00
Switched IF Statement order to prevent excess calls to redis.
This commit is contained in:
parent
19f21219f8
commit
493c12846a
4 changed files with 6 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
class Resque
|
||||
{
|
||||
const VERSION = '1.4.5';
|
||||
const VERSION = '1.4.6';
|
||||
|
||||
const DEFAULT_INTERVAL = 5;
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@ class Resque_Worker
|
|||
*/
|
||||
public static function find($workerId)
|
||||
{
|
||||
if (!self::exists($workerId) || false === strpos($workerId, ":")) {
|
||||
if (false === strpos($workerId, ":") || !self::exists($workerId)) {
|
||||
return false;
|
||||
}
|
||||
/** @noinspection PhpUnusedLocalVariableInspection */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue