Explain keypress sleep debouncing in hybernateDisplayLoop
This commit is contained in:
		@@ -92,6 +92,8 @@ func (af *AfterLock) hybernateDisplayLoop() {
 | 
			
		||||
			af.suspendDisplay()
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// avoid suspending the display while typing:
 | 
			
		||||
		// sleep until no keys were pressed for LoopDelay seconds
 | 
			
		||||
		for {
 | 
			
		||||
			time.Sleep(time.Duration(af.LoopDelay) * time.Second)
 | 
			
		||||
			if !af.screenLocked() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user