From eca2b350575de010fbf57faf49717aaa438a8c44 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 17 Sep 2025 20:55:33 -0400 Subject: [PATCH] Fix crash when deleting an actor --- environment.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/environment.go b/environment.go index afb4cf5..ba8dc93 100644 --- a/environment.go +++ b/environment.go @@ -151,7 +151,9 @@ func (this *environment) Del(ctx context.Context, actors ...Actor) error { if info.stopped != nil { channels = append(channels, info.stopped) } - info.done() + if info.done != nil { + info.done() + } } for _, channel := range channels { if channel == nil { continue }