Fix crash when deleting an actor
This commit is contained in:
parent
d34af2c4ee
commit
eca2b35057
@ -151,8 +151,10 @@ 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)
|
||||||
}
|
}
|
||||||
|
if info.done != nil {
|
||||||
info.done()
|
info.done()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
for _, channel := range channels {
|
for _, channel := range channels {
|
||||||
if channel == nil { continue }
|
if channel == nil { continue }
|
||||||
select {
|
select {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user