Skip to content

Commit

Permalink
grr, jruby!
Browse files Browse the repository at this point in the history
  • Loading branch information
igrigorik committed Dec 11, 2010
1 parent 40669f0 commit 629473f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/agent/transport/queue.rb
Expand Up @@ -33,12 +33,12 @@ def initialize(name, max = 1)

%w[que wait mutex cvar].each do |attr|
define_method attr do
Queue.class_variable_get(:"@@__agent_queue_#{@name}__").send attr
Queue.send(:class_variable_get, :"@@__agent_queue_#{@name}__").send attr
end
end

def close
Queue.remove_class_variable(:"@@__agent_queue_#{@name}__")
Queue.send(:remove_class_variable, :"@@__agent_queue_#{@name}__")
end

def size; que.size; end
Expand Down

0 comments on commit 629473f

Please sign in to comment.