diff options
| author | Casey Dahlin <cdahlin@redhat.com> | 2008-10-07 12:42:27 -0400 |
|---|---|---|
| committer | Casey Dahlin <cdahlin@redhat.com> | 2008-10-07 12:42:27 -0400 |
| commit | 5cb0be51e428b900c33bbe7dd14767887159be32 (patch) | |
| tree | 8f086fac9260812bff7199f1e433fc1fca4afda9 | |
| parent | 2e8ec39d5747542f2eabec7999ef76576ab5a69d (diff) | |
| download | upstate-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.
| -rw-r--r-- | state.rb | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
