diff options
Diffstat (limited to 'state.rb')
-rw-r--r-- | state.rb | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |