Handling actor startup errors in pre_start results in a SpawnErr however it wasn't being handled putting the actor into a Stopped state (which it should have), since that's where the actor registries are cleaned up such as the named and pg registries. This would result in dangling references in those registries.
This PR specifically captures spawn failures and sets the actor to stopped to call the necessary de-registration hooks.
Handling actor startup errors in
pre_start
results in aSpawnErr
however it wasn't being handled putting the actor into aStopped
state (which it should have), since that's where the actor registries are cleaned up such as the named andpg
registries. This would result in dangling references in those registries.This PR specifically captures spawn failures and sets the actor to stopped to call the necessary de-registration hooks.
Resolves #240