mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Delete timer before adding it again.
This commit is contained in:
		
							
								
								
									
										1
									
								
								tty.c
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								tty.c
									
									
									
									
									
								
							@@ -321,6 +321,7 @@ tty_start_start_timer(struct tty *tty)
 | 
				
			|||||||
	struct timeval	 tv = { .tv_sec = TTY_QUERY_TIMEOUT };
 | 
						struct timeval	 tv = { .tv_sec = TTY_QUERY_TIMEOUT };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	log_debug("%s: start timer started", c->name);
 | 
						log_debug("%s: start timer started", c->name);
 | 
				
			||||||
 | 
						evtimer_del(&tty->start_timer);
 | 
				
			||||||
	evtimer_set(&tty->start_timer, tty_start_timer_callback, tty);
 | 
						evtimer_set(&tty->start_timer, tty_start_timer_callback, tty);
 | 
				
			||||||
	evtimer_add(&tty->start_timer, &tv);
 | 
						evtimer_add(&tty->start_timer, &tv);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user