slawlor / ractor

Rust actor framework
MIT License
1.3k stars 66 forks source link

Fix calling `post_stop` on killed actors #230

Closed slawlor closed 2 months ago

slawlor commented 2 months ago

Issue #226 identified that actors which are killed (in the supervision flow, or any other way) still call post_stop which they shouldn't. They should immediately exit and drop resources.

This resolves that bug and adds test coverage around the issue.

Resolves #226