Skip to content

Commit

Permalink
sessionLock: fix misc:allow_session_lock_restore (#7511)
Browse files Browse the repository at this point in the history
* Revert "sessionLock: fix the check for locking a locked session (#6843)"

This reverts commit 9ff83f4.

* 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.
  • Loading branch information
PaideiaDilemma authored Aug 26, 2024
1 parent 83ab3ae commit 28f6c2d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/protocols/SessionLock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 28f6c2d

Please sign in to comment.