From c7ead377529930ea36ab7da0481b4d961d7c6605 Mon Sep 17 00:00:00 2001 From: Lutz Bichler Date: Wed, 11 Feb 2015 12:50:46 +0100 Subject: Moved a call methods to the outermost context from the state destructor to the transition function. --- implementation/service_discovery/src/service_discovery_fsm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implementation/service_discovery/src/service_discovery_fsm.cpp b/implementation/service_discovery/src/service_discovery_fsm.cpp index 7f53cb0..c6c3147 100644 --- a/implementation/service_discovery/src/service_discovery_fsm.cpp +++ b/implementation/service_discovery/src/service_discovery_fsm.cpp @@ -69,10 +69,10 @@ active::active(my_context _context): sc::state< active, fsm, initial >(_context) } active::~active() { - outermost_context().stop_timer(); } sc::result active::react(const ev_status_change &_event) { + outermost_context().stop_timer(); outermost_context().is_up_ = _event.is_up_; if (!outermost_context().is_up_) return transit< inactive >(); -- cgit v1.2.1