session-lock: fix refocus after unlocking (#6423)

This commit is contained in:
Maximilian Seidler 2024-06-11 17:18:51 +02:00 committed by GitHub
parent 8c64a4bad7
commit 1c388e52fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,9 +114,11 @@ CSessionLock::CSessionLock(SP<CExtSessionLockV1> resource_) : resource(resource_
return; return;
} }
events.unlockAndDestroy.emit();
inert = true;
PROTO::sessionLock->locked = false; PROTO::sessionLock->locked = false;
events.unlockAndDestroy.emit();
inert = true;
PROTO::sessionLock->destroyResource(this); PROTO::sessionLock->destroyResource(this);
}); });
} }