Merge pull request #226 from nuvan/stompfix

Fixed Stomp input plugin subscription method.
This commit is contained in:
Jordan Sissel 2012-12-27 15:40:30 -08:00
commit c217522eb8

View file

@ -58,6 +58,13 @@ class LogStash::Inputs::Stomp < LogStash::Inputs::Base
e = to_event(msg.body, @stomp_url)
@output_queue << e if e
end
#In the event that there is only Stomp input plugin instances
#the process ends prematurely. The above code runs, and return
#the flow control to the 'run' method below. After that, the
#method "run_input" from agent.rb marks 'done' as 'true' and calls
#'finish' over the Stomp plugin instance.
#'Sleeping' the plugin leves the instance alive.
sleep
end
public