mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-22 16:25:14 +00:00
Merge pull request #29 from salimane/upstream
fix bug whereby jobs are reserved based on an erroneous payload
This commit is contained in:
commit
a4e3a07946
@ -84,7 +84,7 @@ class Resque_Job
|
|||||||
public static function reserve($queue)
|
public static function reserve($queue)
|
||||||
{
|
{
|
||||||
$payload = Resque::pop($queue);
|
$payload = Resque::pop($queue);
|
||||||
if(!$payload) {
|
if(!is_object($payload)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user