mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Fix detach -a by skipping clients where the session is NULL.
This commit is contained in:
		@@ -71,7 +71,8 @@ cmd_detach_client_exec(struct cmd *self, struct cmd_q *cmdq)
 | 
			
		||||
		if (args_has(args, 'a')) {
 | 
			
		||||
			for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
 | 
			
		||||
				c2 = ARRAY_ITEM(&clients, i);
 | 
			
		||||
				if (c2 == NULL || c == c2)
 | 
			
		||||
				if (c2 == NULL || c2->session == NULL ||
 | 
			
		||||
				    c2 == c)
 | 
			
		||||
					continue;
 | 
			
		||||
				server_write_client(c2, msgtype,
 | 
			
		||||
				    c2->session->name,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user