remove one more allocation in hot path
This commit is contained in:
parent
9dbfad331f
commit
5092eb0cf4
1 changed files with 1 additions and 1 deletions
|
|
@ -368,7 +368,7 @@ trait FSM[S, D] {
|
|||
|
||||
private def applyState(nextState: State) = {
|
||||
currentState = nextState
|
||||
val timeout = currentState.timeout orElse stateTimeouts(currentState.stateName)
|
||||
val timeout = if (currentState.timeout.isDefined) currentState.timeout else stateTimeouts(currentState.stateName)
|
||||
if (timeout.isDefined) {
|
||||
val t = timeout.get
|
||||
if (t.length >= 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue