summaryrefslogtreecommitdiffstats
path: root/state.rb
diff options
context:
space:
mode:
Diffstat (limited to 'state.rb')
-rw-r--r--state.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/state.rb b/state.rb
index 6f232c9..ea3ace5 100644
--- a/state.rb
+++ b/state.rb
@@ -76,12 +76,15 @@ class State
# Make sure our deps are satisfied, and remove ourselves from the list of
# states if they aren't
def check_deps
+ trace "Dep check on #{self}"
@deps.each do |dep|
next if dep.active
- raise ConsistencyFault if self.active
+ raise ConsistencyFault, "Lost dep on #{dep} without notify for #{self}" if self.active
+ trace " Purging..."
@@states.delete self
- self.methods.each{ |x| undef x }
+ self.methods.each{ |x| undef x rescue nil }
self.freeze
+ return
end
end