Delete timer before adding it again.

This commit is contained in:
nicm
2025-09-01 22:11:23 +00:00
parent aa33757e45
commit b5413dacc7

1
tty.c
View File

@ -321,6 +321,7 @@ 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_set(&tty->start_timer, tty_start_timer_callback, tty);
evtimer_add(&tty->start_timer, &tv);
}