diff options
| author | Maximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com> | 2024-07-11 16:40:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-11 16:40:43 +0200 |
| commit | 9ff83f4aa97269bf26381a84501d0b19f1926961 (patch) | |
| tree | 1f4e33be191e883c00307a0b6cc75e112426dc97 /src/protocols/SessionLock.cpp | |
| parent | 3247d18a7c257ac8c59bf9bfdebaaf51bfc5c1df (diff) | |
sessionLock: fix the check for locking a locked session (#6843)
Diffstat (limited to 'src/protocols/SessionLock.cpp')
| -rw-r--r-- | src/protocols/SessionLock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/SessionLock.cpp b/src/protocols/SessionLock.cpp index e7abc7cb..42df5fd6 100644 --- a/src/protocols/SessionLock.cpp +++ b/src/protocols/SessionLock.cpp @@ -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(); |
