Skip to content

Commit

Permalink
Added code to util.rb for BackgroundTask objects
Browse files Browse the repository at this point in the history
  • Loading branch information
johnewart committed Jul 19, 2010
1 parent 12ac555 commit ea83d46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION.yml
@@ -1,4 +1,4 @@
---
:major: 1
:minor: 4
:patch: 1
:patch: 2
2 changes: 1 addition & 1 deletion lib/gearman/util.rb
Expand Up @@ -93,7 +93,7 @@ def Util.pack_request(type_name, arg='')
# Task.new
# @return Task object
def Util.get_task_from_args(*args)
if args[0].class == Task
if (args[0].class == Task || args[0].class.superclass == Task)
return args[0]
elsif args.size <= 3
return Task.new(*args)
Expand Down

0 comments on commit ea83d46

Please sign in to comment.