1
0
Эх сурвалжийг харах

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

Akinori MUSHA 10 жил өмнө
parent
commit
fd991f7eb5

+ 0 - 4
app/models/agents/mqtt_agent.rb

@@ -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