Merge pull request #29 from salimane/upstream

fix bug whereby jobs are reserved based on an erroneous payload
This commit is contained in:
Chris Boulton 2011-12-07 04:06:48 -08:00
commit a4e3a07946

View File

@ -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;
} }