server: when a session is closed, close also its tcp connection

This commit is contained in:
aler9
2021-05-08 16:59:57 +02:00
parent 6d6e866d1e
commit 4beda10c06

View File

@@ -351,6 +351,9 @@ func (ss *ServerSession) run() {
}
for sc := range ss.conns {
if sc == ss.tcpConn {
sc.Close()
}
sc.sessionRemove <- ss
}
ss.connsWG.Wait()