small hotfix

This commit is contained in:
InsanusMokrassar 2021-12-27 16:00:07 +06:00
parent 8b39882e83
commit 612cf40b5f

View File

@ -52,7 +52,7 @@ open class DefaultUpdatableStatesMachine<T : State>(
}
}
protected suspend fun compare(previous: Optional<T>, new: T): Boolean = previous.dataOrNull() != new
protected open suspend fun compare(previous: Optional<T>, new: T): Boolean = previous.dataOrNull() != new
override suspend fun updateChain(currentState: T, newState: T) {
statesManager.update(currentState, newState)