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

This commit is contained in:
Dario 2020-09-25 14:25:24 +02:00 committed by Ulf Gebhardt
parent 662aed72b9
commit dfa3264e93
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -235,14 +235,17 @@ bool SessionManager::releaseSession(int requestHandleSession)
mWorkingMutex.unlock();
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();