#22: a note on state cleaning when ns is recompiled

This commit is contained in:
anatoly 2015-12-15 12:25:00 -05:00
parent eeda080322
commit 4fb6f6849e

View file

@ -49,6 +49,7 @@
it is meant to be called by defstate before defining a new state"
[state]
(when-let [stop (@running state)]
(prn (str "<< stopping.. " state " (namespace was recompiled)"))
(stop)
(swap! running dissoc state)))