mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	We already loop over the windows in server_client_loop, so don't do it
again in server_loop just to check names.
This commit is contained in:
		
							
								
								
									
										6
									
								
								server.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								server.c
									
									
									
									
									
								
							@@ -249,13 +249,11 @@ server_start(int lockfd, char *lockfile)
 | 
			
		||||
void
 | 
			
		||||
server_loop(void)
 | 
			
		||||
{
 | 
			
		||||
	struct window	*w;
 | 
			
		||||
 | 
			
		||||
	while (!server_should_shutdown()) {
 | 
			
		||||
		log_debug("event dispatch enter");
 | 
			
		||||
		event_loop(EVLOOP_ONCE);
 | 
			
		||||
		log_debug("event dispatch exit");
 | 
			
		||||
 | 
			
		||||
		RB_FOREACH(w, windows, &windows)
 | 
			
		||||
		    check_window_name(w);
 | 
			
		||||
		server_client_loop();
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user