Disconnect only needed once, already done in fetch().
This commit is contained in:
parent
8cfd10e690
commit
8f7a5b938b
1 changed files with 0 additions and 3 deletions
|
@ -15,10 +15,7 @@ class Channel < ApplicationModel
|
||||||
|
|
||||||
channel_object = Object.const_get("Channel::#{channel[:adapter]}")
|
channel_object = Object.const_get("Channel::#{channel[:adapter]}")
|
||||||
channel_instance = channel_object.new
|
channel_instance = channel_object.new
|
||||||
|
|
||||||
channel_instance.fetch(channel)
|
channel_instance.fetch(channel)
|
||||||
|
|
||||||
channel_instance.disconnect
|
|
||||||
rescue => e
|
rescue => e
|
||||||
logger.error "Can't use Channel::#{channel[:adapter]}"
|
logger.error "Can't use Channel::#{channel[:adapter]}"
|
||||||
logger.error e.inspect
|
logger.error e.inspect
|
||||||
|
|
Loading…
Reference in a new issue