session-lock: don't allow events from rejected locks

fixes #5913
This commit is contained in:
Vaxry
2024-05-07 18:42:55 +01:00
parent 598bbd186b
commit 22a86fd7a2
3 changed files with 13 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ void CSessionLockManager::onNewSessionLock(SP<CSessionLock> pLock) {
if (PROTO::sessionLock->isLocked() && !*PALLOWRELOCK) {
Debug::log(LOG, "Cannot re-lock, misc:allow_session_lock_restore is disabled");
pLock->sendDenied();
return;
}