mirror of
https://github.com/tmux/tmux.git
synced 2026-10-17 00:44:54 +00:00
tmux: remove redundant event_del()/evtimer_del()
event_add(3) automatically replaces any pending timeout for an existing event, making explicit event_del() / evtimer_del() calls immediately before event_add() / evtimer_add() unnecessary. OK nicm@
This commit is contained in:
3
tty.c
3
tty.c
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: tty.c,v 1.491 2026/10/16 07:59:06 nicm Exp $ */
|
||||
/* $OpenBSD: tty.c,v 1.492 2026/10/16 11:34:49 bket Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
@@ -330,7 +330,6 @@ tty_start_start_timer(struct tty *tty)
|
||||
struct timeval tv = { .tv_sec = TTY_QUERY_TIMEOUT };
|
||||
|
||||
log_debug("%s: start timer started", c->name);
|
||||
evtimer_del(&tty->start_timer);
|
||||
evtimer_add(&tty->start_timer, &tv);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user