Making sure that RemoteActorRef.start cannot revive a RemoteActorRefs current status

This commit is contained in:
Viktor Klang 2011-07-10 15:39:58 +02:00
parent 5e94ca6fc5
commit ba6a250fef

View file

@ -988,7 +988,8 @@ private[akka] case class RemoteActorRef private[akka] (
}
def start(): this.type = synchronized[this.type] {
_status = ActorRefInternals.RUNNING
if (_status == ActorRefInternals.UNSTARTED)
_status = ActorRefInternals.RUNNING
this
}