summaryrefslogtreecommitdiff
path: root/src/protocols/SessionLock.cpp
diff options
context:
space:
mode:
authorMaximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com>2024-08-26 08:27:34 +0000
committerGitHub <noreply@github.com>2024-08-26 10:27:34 +0200
commit28f6c2df5923bfe514d238399f934fc80bb1449d (patch)
treeea2534ab533307436390d5e59a3fdac2c964be5a /src/protocols/SessionLock.cpp
parent83ab3ae0afeafe25ca2038888478740d0a80396a (diff)
sessionLock: fix misc:allow_session_lock_restore (#7511)
* Revert "sessionLock: fix the check for locking a locked session (#6843)" This reverts commit 9ff83f4aa97269bf26381a84501d0b19f1926961. * 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.
Diffstat (limited to 'src/protocols/SessionLock.cpp')
-rw-r--r--src/protocols/SessionLock.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/protocols/SessionLock.cpp b/src/protocols/SessionLock.cpp
index 7b0d8b3b..fe44face 100644
--- a/src/protocols/SessionLock.cpp
+++ b/src/protocols/SessionLock.cpp
@@ -175,13 +175,6 @@ void CSessionLockProtocol::onLock(CExtSessionLockManagerV1* pMgr, uint32_t id) {
return;
}
- if (locked) {
- LOGM(ERR, "Tried to lock a locked session");
- RESOURCE->inert = true;
- RESOURCE->resource->sendFinished();
- return;
- }
-
events.newLock.emit(RESOURCE);
locked = true;