Fix crash when deleting an actor

This commit is contained in:
Sasha Koshka 2025-09-17 20:55:33 -04:00
parent d34af2c4ee
commit eca2b35057

View File

@ -151,8 +151,10 @@ func (this *environment) Del(ctx context.Context, actors ...Actor) error {
if info.stopped != nil {
channels = append(channels, info.stopped)
}
if info.done != nil {
info.done()
}
}
for _, channel := range channels {
if channel == nil { continue }
select {