The MQTT::Client#connect automatically calls #disconnect when a block is given.

This commit is contained in:
Akinori MUSHA 2014-10-14 19:36:44 +09:00
parent 7b341cfc62
commit fd991f7eb5

View file

@ -110,8 +110,6 @@ module Agents
incoming_events.each do |event|
c.publish(interpolated(event)['topic'], event)
end
c.disconnect
end
end
@ -134,8 +132,6 @@ module Agents
}
rescue Timeout::Error
end
c.disconnect
end
end