Fixed bug

This commit is contained in:
Ruud Kamphuis 2012-09-10 10:23:18 +02:00
parent 4d5552867a
commit 15324ca410

View File

@ -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) {