Skip to content

Commit

Permalink
move hooks to main
Browse files Browse the repository at this point in the history
  • Loading branch information
Yogthos committed Sep 9, 2024
1 parent 399723b commit 29650b7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
(->> (config/system-config (or (:opts params) (:opts defaults) {}))
(ig/expand)
(ig/init)
(reset! system))
(.addShutdownHook (Runtime/getRuntime) (Thread. stop-app))
(.addShutdownHook (Runtime/getRuntime) (Thread. shutdown-agents)))
(reset! system)))

(defn -main [& _]
(start-app))
(start-app)
(.addShutdownHook (Runtime/getRuntime) (Thread. stop-app))
(.addShutdownHook (Runtime/getRuntime) (Thread. shutdown-agents)))

0 comments on commit 29650b7

Please sign in to comment.