sessionLock: fix the check for locking a locked session (#6843)

This commit is contained in:
Maximilian Seidler 2024-07-11 16:40:43 +02:00 committed by GitHub
parent 3247d18a7c
commit 9ff83f4aa9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -177,7 +177,7 @@ void CSessionLockProtocol::onLock(CExtSessionLockManagerV1* pMgr, uint32_t id) {
return;
}
if (m_vLocks.size() > 1) {
if (locked) {
LOGM(ERR, "Tried to lock a locked session");
RESOURCE->inert = true;
RESOURCE->resource->sendFinished();