1
This commit is contained in:
parent
b424a98f9c
commit
6ac513f73a
@ -92,7 +92,12 @@ void LongSessionMgr::ProcUdpPacket(a8::UdpPacket* pkt)
|
|||||||
void LongSessionMgr::DelSession(int socket_handle)
|
void LongSessionMgr::DelSession(int socket_handle)
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
auto sesion = GetSession(socket_handle);
|
auto session = GetSession(socket_handle);
|
||||||
|
if (session && session.use_count() != 1) {
|
||||||
|
#ifdef DEBUG
|
||||||
|
abort();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
socket_handle_hash_.erase(socket_handle);
|
socket_handle_hash_.erase(socket_handle);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user