Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

client.disconnect fails with "undefined method 'close' for nil:NilClass" #66

Closed
eliaslevy opened this Issue · 2 comments

2 participants

@eliaslevy

EM.run do
client = AMQP.connect(:host => '127.0.0.1')
client.disconnect
end

NoMethodError: undefined method close' for nil:NilClass
from /home/aleph1/janus.immunet.com/trunk/ruby/lib/ruby/gems/1.9.1/gems/amq-client-0.7.0.alpha13/lib/amq/client/adapter.rb:213:in
disconnect'

@michaelklishin

This code is a subject to race conditions. By the moment you are trying to disconnect, connection isn't open yet.

@michaelklishin

amqp 0.8.0.rc6 and amq-client 0.7.0.alpha18 are now both available from rubygems.org. Thank you for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.