mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Don't try enable/disable the event if the window pane is dead (fd == -1), as
the event will have been freed.
This commit is contained in:
		| @@ -70,11 +70,13 @@ server_window_loop(void) | ||||
| 			continue; | ||||
|  | ||||
| 		TAILQ_FOREACH(wp, &w->panes, entry) { | ||||
| 			if (wp->fd != -1) { | ||||
| 				if (server_window_backoff(wp)) | ||||
| 					bufferevent_disable(wp->event, EV_READ); | ||||
| 				else | ||||
| 					bufferevent_enable(wp->event, EV_READ); | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		for (j = 0; j < ARRAY_LENGTH(&sessions); j++) { | ||||
| 			s = ARRAY_ITEM(&sessions, j); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Nicholas Marriott
					Nicholas Marriott