优化释放IpAuditPool的代码逻辑

This commit is contained in:
lanrenwo 2022-10-26 14:29:46 +08:00
parent 9f40bb40ef
commit 6fdc0e54d5
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ func (cs *ConnSession) Close() {
cs.Sess.LastLogin = time.Now()
cs.Sess.CSess = nil
if base.Cfg.AuditInterval >= 0 {
if cs.IpAuditPool != nil {
cs.IpAuditPool.Release()
}