Skip to content

Commit

Permalink
Forced long to Thread/sleep duration to avoid reflection error
Browse files Browse the repository at this point in the history
Signed-off-by: James Turnbull <[email protected]>
  • Loading branch information
jamtur01 committed Oct 29, 2023
1 parent e3326e5 commit 47d4bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/riemann/time.clj
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
(reset! running false)
(while (some #(.isAlive ^Thread %) @threadpool)
; Allow at most 1/10th park-interval to pass after all threads exit.
(Thread/sleep (* park-interval 100)))
(Thread/sleep (long (* park-interval 100))))
(reset! threadpool [])))

(defn start!
Expand Down

0 comments on commit 47d4bc4

Please sign in to comment.