Clear the inflight clock hashmap after stopping a clock

Fixes #5792
This commit is contained in:
Pier-Hugues Pellerin 2016-08-22 12:01:57 -04:00
parent ab9f3b79be
commit cf3a424609

View file

@ -117,6 +117,7 @@ module LogStash; module Util
def stop_clock
@inflight_clocks[Thread.current].each(&:stop)
@inflight_clocks.delete(Thread.current)
end
def add_starting_metrics(batch)