mirror of https://github.com/bjdgyc/anylink.git
用户下线后, 释放IpAuditPool
This commit is contained in:
parent
86ee88a20c
commit
7de9d9f16d
|
@ -240,11 +240,14 @@ func (cs *ConnSession) Close() {
|
|||
defer cs.Sess.mux.Unlock()
|
||||
|
||||
close(cs.CloseChan)
|
||||
cs.IpAuditPool.Release()
|
||||
cs.Sess.IsActive = false
|
||||
cs.Sess.LastLogin = time.Now()
|
||||
cs.Sess.CSess = nil
|
||||
|
||||
if base.Cfg.AuditInterval >= 0 {
|
||||
cs.IpAuditPool.Release()
|
||||
}
|
||||
|
||||
dSess := cs.GetDtlsSession()
|
||||
if dSess != nil {
|
||||
dSess.Close()
|
||||
|
|
Loading…
Reference in New Issue