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 }