summaryrefslogtreecommitdiffstats
path: root/state.rb
diff options
context:
space:
mode:
authorCasey Dahlin <cdahlin@redhat.com>2008-10-07 12:42:27 -0400
committerCasey Dahlin <cdahlin@redhat.com>2008-10-07 12:42:27 -0400
commit5cb0be51e428b900c33bbe7dd14767887159be32 (patch)
tree8f086fac9260812bff7199f1e433fc1fca4afda9 /state.rb
parent2e8ec39d5747542f2eabec7999ef76576ab5a69d (diff)
downloadupstate-5cb0be51e428b900c33bbe7dd14767887159be32.tar.gz
upstate-5cb0be51e428b900c33bbe7dd14767887159be32.tar.xz
upstate-5cb0be51e428b900c33bbe7dd14767887159be32.zip
Run service drop task /after/ state change
For synchronization, delay dropping the class until after the state has changed.
Diffstat (limited to 'state.rb')
-rw-r--r--state.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/state.rb b/state.rb
index 1c6d09e..db21952 100644
--- a/state.rb
+++ b/state.rb
@@ -124,9 +124,10 @@ class State
# Set this state to untrue
def drop
return unless @active
+ trace "Dropping #{self}"
break_holds if @holds.size > 0
- self.class.falling_edge.call(params)
becomes_defunct
+ self.class.falling_edge.call(params)
end
# Parameters to this state