mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-17 12:21:31 +00:00
The MQTT::Client#connect automatically calls #disconnect when a block is given.
This commit is contained in:
parent
7b341cfc62
commit
fd991f7eb5
1 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue