mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Do not destroy sessions twice, GitHub issue 2889.
This commit is contained in:
		@@ -205,6 +205,9 @@ session_destroy(struct session *s, int notify, const char *from)
 | 
				
			|||||||
	struct winlink	*wl;
 | 
						struct winlink	*wl;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	log_debug("session %s destroyed (%s)", s->name, from);
 | 
						log_debug("session %s destroyed (%s)", s->name, from);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (s->curw == NULL)
 | 
				
			||||||
 | 
							return;
 | 
				
			||||||
	s->curw = NULL;
 | 
						s->curw = NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	RB_REMOVE(sessions, &sessions, s);
 | 
						RB_REMOVE(sessions, &sessions, s);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user