Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Closes #1007. Machine no longer steals from its children

  • Loading branch information...
commit 89401c1068c7f574d388507c5c2feeadc8ed92a1 1 parent bd26aa5
@dpp dpp authored
View
4 machine/src/main/scala/net/liftweb/machine/ProtoStateMachine.scala
@@ -121,7 +121,7 @@ trait ProtoStateMachine[MyType <: ProtoStateMachine[MyType, StateType], StateTyp
toProcess.foreach {
event =>
try {
- getSingleton.processEvent(this, event)
+ getSingleton.metaProcessEvent(this, event)
} finally {
synchronized {_isProcessing = false}
processIt
@@ -198,7 +198,7 @@ trait MetaProtoStateMachine [MyType <: ProtoStateMachine[MyType, StateType],
/**
* Process an event for an instance
*/
- protected def processEvent(who: MyType, what: Meta#Event) {
+ private[machine] def metaProcessEvent(who: MyType, what: Meta#Event) {
val transitions = stateInfo(who.state) // get the transitions
val which = first(transitions.toList) {t => if (t.on.isDefinedAt(what) && t.testGuard(who, who.state, t.to, what)) Full(t) else Empty}
Please sign in to comment.
Something went wrong with that request. Please try again.