mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-25 01:35:14 +00:00
Fixed bug
This commit is contained in:
parent
4d5552867a
commit
15324ca410
@ -119,7 +119,7 @@ class Resque
|
||||
if($interval == null) {
|
||||
$item = self::redis()->lpop('queue:' . $queue);
|
||||
} else {
|
||||
$item = self::redis()->blpop('queue:' . $queue, $interval ?: Resque::DEFAULT_INTERVAL);
|
||||
$item = self::redis()->blpop('queue:' . $queue, $interval ? $interval : Resque::DEFAULT_INTERVAL);
|
||||
}
|
||||
|
||||
if(!$item) {
|
||||
|
Loading…
Reference in New Issue
Block a user