diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2012-04-09 21:35:40 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2012-04-09 21:35:40 +0200 |
commit | e6d4817340ec82a05e5c2b288b4e652d9f2ba2f1 (patch) | |
tree | edf32b1354626a7dd0435934b06973ac491c69d0 /src | |
parent | e5d1c5b63b348a0fd657f99ca8ba4d055031202a (diff) |
Revert to older startup procedure.
Diffstat (limited to 'src')
-rw-r--r-- | src/mulk/benki/main.clj | 8 |
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 [] |