1
This commit is contained in:
parent
809297d9a6
commit
15f49da6c1
@ -16,7 +16,7 @@ void LongSession::Init(f8::MsgHdr& hdr, const ss::SS_CMKcpHandshake& msg)
|
||||
|
||||
void LongSession::UnInit()
|
||||
{
|
||||
|
||||
kcp_session_->UnInit();
|
||||
}
|
||||
|
||||
void LongSession::Update(long long tick)
|
||||
|
@ -96,10 +96,13 @@ void LongSessionMgr::DelSession(int socket_handle)
|
||||
{
|
||||
{
|
||||
auto session = GetSession(socket_handle);
|
||||
if (session && session.use_count() != 2) {
|
||||
if (session) {
|
||||
if (session.use_count() != 2) {
|
||||
#ifdef DEBUG
|
||||
abort();
|
||||
abort();
|
||||
#endif
|
||||
}
|
||||
session->UnInit();
|
||||
}
|
||||
}
|
||||
socket_handle_hash_.erase(socket_handle);
|
||||
|
Loading…
x
Reference in New Issue
Block a user