summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mulk/benki/main.clj8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mulk/benki/main.clj b/src/mulk/benki/main.clj
index edf0583..753f253 100644
--- a/src/mulk/benki/main.clj
+++ b/src/mulk/benki/main.clj
@@ -84,8 +84,6 @@
(noir.server/add-middleware #(ring.middleware.file/wrap-file % "static"))
(noir.server/add-middleware #(wrap-extension-mimetype %)))
-(defonce server (atom nil))
-
(defn run-server []
(let [mode (or (:mode @benki-config) :production)
noir-handler (noir.server/gen-handler {:mode mode})]
@@ -94,10 +92,8 @@
{:port (:web-port @benki-config)
:websocket true}))))
-(do-once ::start
- (doto (Thread. run-server)
- (.setDaemon true)
- (.start)))
+(defonce server
+ (run-server))
(defn -main [& args]
(loop []