lib/fluent/plugin/output_node.rb in fluent-plugin-secure-forward-0.2.5 vs lib/fluent/plugin/output_node.rb in fluent-plugin-secure-forward-0.2.6
- old
+ new
@@ -294,9 +294,11 @@
log.warn "disconnected from #{@host}"
break
end
end
while @writing
+ break if @detach
+
sleep read_interval
end
self.shutdown
end
end