scala - Akka router's routees sends Terminate message to itself -
i have actor creates router. when work done want stop current actor, stop router , routees.
this code stop hierarchy:
// stopping children context.children foreach context.stop // stopping current actor context.stop(self)
but in log i'm getting messages this:
message [akka.dispatch.sysmsg.terminate] ... ... not delivered. [5] dead letters encountered.
i.e. routees sends terminate message itslef.
i think problem related code stopping actors (above).
how can fix it?
when stop self, children stopped automatically. use context stop self
.
Comments
Post a Comment