better matching reply value
This commit is contained in:
parent
73106f6b32
commit
17f37dffdd
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ trait Fsm[S] { self: Actor =>
|
|||
val newState = (currentState.stateFunction orElse handleEvent).apply(event)
|
||||
|
||||
newState match {
|
||||
case State(Reply, _, _, _, replyValue) => replyValue.foreach(this.self.reply)
|
||||
case State(Reply, _, _, _, Some(replyValue)) => this.self.reply(replyValue)
|
||||
case _ => () // ignore for now
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue