#22: dissoc from running states on recompile

This commit is contained in:
anatoly 2015-12-14 20:41:14 -05:00
parent 05f7c35712
commit d342b43f23

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]