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

Commit 4813b02

Browse files
author
Ahmed Ammar
committed
test.
1 parent bfee3ae commit 4813b02

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

lib/logstash/inputs/dynamodb.rb

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,15 @@ def run(logstash_queue)
185185
begin
186186
run_with_catch(logstash_queue)
187187
end
188-
if stop?
189-
exit_threads
190-
until @queue.empty?
191-
@logger.info("Flushing rest of events in logstash queue")
192-
event = @queue.pop()
193-
queue_event(@parser.parse_stream(event), logstash_queue, @host)
194-
end # until [email protected]?
195-
end # begin
188+
while !stop?
189+
end
190+
191+
exit_threads
192+
until @queue.empty?
193+
@logger.info("Flushing rest of events in logstash queue")
194+
event = @queue.pop()
195+
queue_event(@parser.parse_stream(event), logstash_queue, @host)
196+
end # until [email protected]?
196197
end # def run(logstash_queue)
197198

198199
# Starts KCL app in a background thread

0 commit comments

Comments
 (0)