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
41bf8c1c26
commit
5eff86d3c3
@ -122,7 +122,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