sessionLock: fix misc:allow_session_lock_restore (#7511)

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

This reverts commit 9ff83f4aa9.

* sessionLock: remove early check for session beeing locked

It is checked in the `onNewSessionLock` handler, which also respects the
`misc:allow_session_lock_restore` option.
This commit is contained in:
Maximilian Seidler 2024-08-26 08:27:34 +00:00 committed by GitHub
parent 83ab3ae0af
commit 28f6c2df59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 7 deletions

View File

@ -175,13 +175,6 @@ void CSessionLockProtocol::onLock(CExtSessionLockManagerV1* pMgr, uint32_t id) {
return; return;
} }
if (locked) {
LOGM(ERR, "Tried to lock a locked session");
RESOURCE->inert = true;
RESOURCE->resource->sendFinished();
return;
}
events.newLock.emit(RESOURCE); events.newLock.emit(RESOURCE);
locked = true; locked = true;