From d342b43f233fe6499ac89a065e4cd18e007a421b Mon Sep 17 00:00:00 2001 From: anatoly Date: Mon, 14 Dec 2015 20:41:14 -0500 Subject: [PATCH] #22: dissoc from running states on recompile --- src/mount/core.cljc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mount/core.cljc b/src/mount/core.cljc index 59da9ec..ac11e27 100644 --- a/src/mount/core.cljc +++ b/src/mount/core.cljc @@ -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]