Disconnect only needed once, already done in fetch().

This commit is contained in:
Martin Edenhofer 2015-07-07 11:35:43 +02:00
parent 8cfd10e690
commit 8f7a5b938b

View file

@ -15,10 +15,7 @@ class Channel < ApplicationModel
channel_object = Object.const_get("Channel::#{channel[:adapter]}")
channel_instance = channel_object.new
channel_instance.fetch(channel)
channel_instance.disconnect
rescue => e
logger.error "Can't use Channel::#{channel[:adapter]}"
logger.error e.inspect