mirror of https://github.com/bjdgyc/anylink.git
优化释放IpAuditPool的代码逻辑
This commit is contained in:
parent
9f40bb40ef
commit
6fdc0e54d5
|
@ -244,7 +244,7 @@ func (cs *ConnSession) Close() {
|
||||||
cs.Sess.LastLogin = time.Now()
|
cs.Sess.LastLogin = time.Now()
|
||||||
cs.Sess.CSess = nil
|
cs.Sess.CSess = nil
|
||||||
|
|
||||||
if base.Cfg.AuditInterval >= 0 {
|
if cs.IpAuditPool != nil {
|
||||||
cs.IpAuditPool.Release()
|
cs.IpAuditPool.Release()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue