Avoid not exiting on unlocked screen with constant keyboard activity

This commit is contained in:
Kristóf Tóth 2020-09-08 15:45:50 +02:00
parent 6cea681f6f
commit fbcb69a855

View File

@ -94,6 +94,9 @@ func (af *AfterLock) hybernateDisplayLoop() {
for { for {
time.Sleep(time.Duration(af.LoopDelay) * time.Second) time.Sleep(time.Duration(af.LoopDelay) * time.Second)
if !af.screenLocked() {
return
}
if af.keypressFlag.Get() { if af.keypressFlag.Get() {
af.keypressFlag.Set(false) af.keypressFlag.Set(false)
continue continue