MCPcopy Create free account
hub / github.com/DNAProject/DNA / removeSession

Method removeSession

http/websocket/session/sessionlist.go:65–69  ·  view source on GitHub ↗
(session *Session)

Source from the content-addressed store, hash-verified

63}
64
65func (self *SessionList) removeSession(session *Session) {
66 self.Lock()
67 defer self.Unlock()
68 delete(self.mapOnlineList, session.GetSessionId())
69}
70
71func (self *SessionList) GetSessionById(sessionId string) *Session {
72 self.RLock()

Callers 1

CloseSessionMethod · 0.95

Calls 1

GetSessionIdMethod · 0.80

Tested by

no test coverage detected