dump used session, currently no recycling as workaround for server freeze bug

This commit is contained in:
Dario 2020-09-25 14:30:53 +02:00
parent 0aace4f027
commit cbc26b830c

View File

@ -231,6 +231,13 @@ bool SessionManager::releaseSession(int requestHandleSession)
return false;
}
Session* session = it->second;
// delete session, not reuse as workaround for server freeze bug
mRequestSessionMap.erase(requestHandleSession);
delete session;
mWorkingMutex.unlock();
return true;
// check if dead locked
if (session->tryLock()) {
session->unlock();