summaryrefslogtreecommitdiffstats
path: root/state.rb
diff options
context:
space:
mode:
Diffstat (limited to 'state.rb')
-rw-r--r--state.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/state.rb b/state.rb
index b82b81f..25cbb2c 100644
--- a/state.rb
+++ b/state.rb
@@ -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