summaryrefslogtreecommitdiffstats
path: root/state.rb
diff options
context:
space:
mode:
Diffstat (limited to 'state.rb')
-rw-r--r--state.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/state.rb b/state.rb
index cf54f75..b8e2964 100644
--- a/state.rb
+++ b/state.rb
@@ -133,6 +133,7 @@ class State
# Duplicate this class and bring the duplicate up with the given hold attached
def fork(hold)
+ raise Consistency Fault, "Fork of live state" unless @status == :down
new_one = self.clone
new_one.instance_eval do
@holds = Set.new [hold]