fix: 修复 server.Server 关闭时线程池未释放的问题
This commit is contained in:
parent
1a2c1df289
commit
7228a07e7e
|
@ -384,6 +384,10 @@ func (slf *Server) shutdown(err error, stack ...string) {
|
||||||
if slf.ticker != nil {
|
if slf.ticker != nil {
|
||||||
slf.ticker.Release()
|
slf.ticker.Release()
|
||||||
}
|
}
|
||||||
|
if slf.ants != nil {
|
||||||
|
slf.ants.Release()
|
||||||
|
slf.ants = nil
|
||||||
|
}
|
||||||
for _, cross := range slf.cross {
|
for _, cross := range slf.cross {
|
||||||
cross.Release()
|
cross.Release()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue