Avoid not exiting on unlocked screen with constant keyboard activity
This commit is contained in:
		@@ -94,6 +94,9 @@ func (af *AfterLock) hybernateDisplayLoop() {
 | 
			
		||||
 | 
			
		||||
		for {
 | 
			
		||||
			time.Sleep(time.Duration(af.LoopDelay) * time.Second)
 | 
			
		||||
			if !af.screenLocked() {
 | 
			
		||||
				return
 | 
			
		||||
			}
 | 
			
		||||
			if af.keypressFlag.Get() {
 | 
			
		||||
				af.keypressFlag.Set(false)
 | 
			
		||||
				continue
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user