mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
- actually, since @close is set, it's safe to end EM right here
This commit is contained in:
parent
e909d241ec
commit
257c2de5d0
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue