mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Only redraw all clients once when the backoff timer expires rather than every
second all the time. Reported by Simon Nicolussi.
This commit is contained in:
		
							
								
								
									
										3
									
								
								server.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								server.c
									
									
									
									
									
								
							@@ -1210,11 +1210,12 @@ server_second_timers(void)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (t > password_backoff) {
 | 
			
		||||
	if (password_backoff != 0 && t >= password_backoff) {
 | 
			
		||||
		for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
 | 
			
		||||
			if ((c = ARRAY_ITEM(&clients, i)) != NULL)
 | 
			
		||||
				server_redraw_client(c);
 | 
			
		||||
		}
 | 
			
		||||
		password_backoff = 0;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/* Check for a minute having passed. */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user