#22: a note on state cleaning when ns is recompiled
This commit is contained in:
parent
eeda080322
commit
4fb6f6849e
1 changed files with 1 additions and 0 deletions
|
|
@ -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)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue