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