Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit e7e1f0a

Browse files
author
Ahmed Ammar
committed
more.
1 parent 265982b commit e7e1f0a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/logstash/inputs/dynamodb.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,18 +184,18 @@ def register
184184
def run(logstash_queue)
185185
begin
186186
run_with_catch(logstash_queue)
187-
end
188-
while !stop?
189-
end
190187

191188
@logger.warn("STOPPING!")
192189

193-
exit_threads
194-
until @queue.empty?
195-
@logger.warn("Flushing rest of events in logstash queue")
196-
event = @queue.pop()
197-
queue_event(@parser.parse_stream(event), logstash_queue, @host)
198-
end # until [email protected]?
190+
exit_threads
191+
until @queue.empty?
192+
@logger.warn("Flushing rest of events in logstash queue")
193+
event = @queue.pop()
194+
queue_event(@parser.parse_stream(event), logstash_queue, @host)
195+
end # until [email protected]?
196+
197+
close
198+
end
199199
end # def run(logstash_queue)
200200

201201
# Starts KCL app in a background thread

0 commit comments

Comments
 (0)