MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RemoveSession

Method RemoveSession

adapter/micro_thread/mt_session.cpp:103–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void SessionMgr::RemoveSession(int session_id)
104{
105 if (!_hash_map) {
106 MTLOG_ERROR("Mngr not init(%p)", _hash_map);
107 return;
108 }
109
110 ISession key;
111 key.SetSessionId(session_id);
112 return _hash_map->HashRemove(&key);
113}

Callers 1

~ISessionMethod · 0.80

Calls 2

HashRemoveMethod · 0.80
SetSessionIdMethod · 0.45

Tested by

no test coverage detected