Fix crash when deleting an actor
This commit is contained in:
parent
d34af2c4ee
commit
eca2b35057
@ -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 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user