stop the timers (if any) while terminating
This commit is contained in:
parent
61502794de
commit
d9b3e42af6
1 changed files with 1 additions and 0 deletions
|
|
@ -378,6 +378,7 @@ trait FSM[S, D] {
|
|||
}
|
||||
|
||||
private def terminate(reason: Reason) = {
|
||||
timers.foreach{ case (timer, t) => log.slf4j.info("Canceling timer {}", timer); t.cancel}
|
||||
terminateEvent.apply(StopEvent(reason, currentState.stateName, currentState.stateData))
|
||||
self.stop
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue