diff --git a/lib/logstash/inputs/http_poller.rb b/lib/logstash/inputs/http_poller.rb index 1d5b35a..a897e93 100644 --- a/lib/logstash/inputs/http_poller.rb +++ b/lib/logstash/inputs/http_poller.rb @@ -144,6 +144,7 @@ def run_once(queue) end client.execute! + stop if ["in", "at"].include? @schedule.keys.first end private diff --git a/logstash-input-http_poller.gemspec b/logstash-input-http_poller.gemspec index 57b2e86..7807971 100644 --- a/logstash-input-http_poller.gemspec +++ b/logstash-input-http_poller.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'logstash-input-http_poller' - s.version = '4.0.6' + s.version = '4.0.7' s.licenses = ['Apache License (2.0)'] s.summary = "Decodes the output of an HTTP API into events" s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"