diff options
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -279,7 +279,8 @@ tty_close(struct tty *tty) tty->log_fd = -1; } - evtimer_del(&tty->key_timer); + if (event_initialized(&tty->key_timer)) + evtimer_del(&tty->key_timer); tty_stop_tty(tty); if (tty->flags & TTY_OPENED) { |