summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--state.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/state.rb b/state.rb
index 1db4c2c..2e24a50 100644
--- a/state.rb
+++ b/state.rb
@@ -107,6 +107,7 @@ class State
@active = false
self.class.depends.each{ |x| x.remove_hold(x) }
State.gc
+ State.depsolve_all
end
# Determine if two State objects are equivalent
@@ -199,6 +200,7 @@ private
self.class.depends.each{ |x| x.hold(self) }
self.class.rising_edge.call(@params)
@active = true
+ State.depsolve_all
end
# Inform other states that they may no longer depend on this one