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,7 +151,9 @@ func (this *environment) Del(ctx context.Context, actors ...Actor) error {
if info.stopped != nil { if info.stopped != nil {
channels = append(channels, info.stopped) channels = append(channels, info.stopped)
} }
info.done() if info.done != nil {
info.done()
}
} }
for _, channel := range channels { for _, channel := range channels {
if channel == nil { continue } if channel == nil { continue }