func (h *RpcServerHandler) OnClose(session getty.Session) {
	logger.Infof("session{%s} is closing......", session.Stat())
	h.rwlock.Lock()
	delete(h.sessionMap, session)
	h.rwlock.Unlock()
}
// OnClose close the session, remove it from the getty server list
OnClose close the session, remove it from the getty server list
// OnClose close the session remove it from the getty server list
func (h *RpcServerHandler) OnClose(session getty.Session) {
	logger.Infof("session{%s} is closing......", session.Stat())
	h.rwlock.Lock()
	delete(h.sessionMap, session)
	h.rwlock.Unlock()
}
func ( h * RpcServerHandler ) OnClose ( session getty . Session ) { logger . Infof ( " " , session . Stat ( ) ) h . rwlock . Lock ( ) delete ( h . sessionMap , session ) h . rwlock . Unlock ( ) }
OnClose close the session, remove it from the getty server list
OnClose close the session remove it from the getty server list