#22: dissoc from running states on recompile

This commit is contained in:
anatoly 2015-12-14 20:41:14 -05:00
parent 40cbf173ee
commit 7e2adce991

View file

@ -50,7 +50,8 @@
it is meant to be called by defstate before defining a new state"
[state]
(when-let [stop (@running state)]
(stop)))
(stop)
(swap! running dissoc state)))
#?(:clj
(defn current-state [state]