diff options
Diffstat (limited to 'state.rb')
-rw-r--r-- | state.rb | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -179,7 +179,8 @@ class State def becomes_defunct(drop=false) return unless @status == :up @status = :dropping - break_holds if @holds.size > 0 + @holds.each{ |x| x.clear } + @holds = Set.new self.class.falling_edge.call(params) if drop @deps.each{ |x| x.state.release(self) } @hold_params = {} @@ -312,12 +313,6 @@ private @status = :up State.depsolve_all end - - # Inform other states that they may no longer depend on this one - def break_holds - @holds.each{ |x| x.clear } - @holds = Set.new - end end =begin rdoc |