forked from quickshell/quickshell
feat(slock): intentionally protocol error if lock is destroyed
This commit is contained in:
parent
a255889e5c
commit
cdd5729642
2 changed files with 7 additions and 1 deletions
|
@ -36,6 +36,7 @@ bool SessionLockManager::lock() {
|
|||
|
||||
bool SessionLockManager::unlock() {
|
||||
if (!this->isLocked()) return false;
|
||||
this->mLock->unlock();
|
||||
auto* lock = this->mLock;
|
||||
this->mLock = nullptr;
|
||||
delete lock;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue