Skip to content

Commit

Permalink
Merge pull request #199 from CharlleDaniel/fix__event_catcher
Browse files Browse the repository at this point in the history
Fix the event catcher bug
  • Loading branch information
agrare committed Jun 12, 2018
2 parents 239e89f + 2a3d816 commit ad9d8a8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ def monitor_events
raise "LXCA event_monitor_handle is nil" if event_monitor_handle.nil?
event_monitor_handle.each_batch do |events|
event_monitor_running
$log.info("Quantity of new LXCA events: #{events.size}")
@queue.enq(events)
if events.present?
$log.info("Quantity of new LXCA events: #{events.size}")
@queue.enq(events)
end
sleep_poll_normal
end
ensure
Expand Down

0 comments on commit ad9d8a8

Please sign in to comment.