- actually, since @close is set, it's safe to end EM right here

This commit is contained in:
Pete Fritchman 2009-10-19 05:53:17 +00:00
parent e909d241ec
commit 257c2de5d0

View file

@ -67,9 +67,7 @@ module LogStash; module Net
hdr.ack hdr.ack
if @close # set by 'close' method if @close # set by 'close' method
# TODO: need a cleaner way to stop the event loop after our reply EM.stop_event_loop
# actually gets sent.
EM.add_timer(1) { EM.stop_event_loop }
end end
end # def handle_message end # def handle_message