Fixed bug

This commit is contained in:
Ruud Kamphuis 2012-09-10 10:23:18 +02:00
parent 41bf8c1c26
commit 5eff86d3c3

View File

@ -122,7 +122,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) {