puppetlabs/marionette-collective — pull request #56 by tarhashi (2012-11-02 04:41:52+00:00)
Title: MCollective::Connector::*#disconnect should substitute nil to @connection.

I'm sorry for my broken english.

I fixed MCollective::Connector::*#disconnect.

When I called client.disconnect and I try to get a new client,it happens an error.

For example:

```ruby
#!/usr/bin/env ruby

require 'mcollective'

include MCollective::RPC

mc = rpcclient("rpcutil")

printrpc mc.inventory

printrpcstats

mc.disconnect

mc = rpcclient("rpcutil")
printrpc mc.inventory
#/usr/lib/ruby/vendor_ruby/stomp/connection.rb:284:in `subscribe': no current connection exists (Stomp::Error::NoCurrentConnection)

```

I'm now creating a MCollective HTTP frontend.
I want to disconnect from the queue server on every request,
but if client.disconnect was called on the end of first request,
@connection without connecting is reused on the next request.