aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--terminal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/terminal.c b/terminal.c
index 35ad71c0..44046f1c 100644
--- a/terminal.c
+++ b/terminal.c
@@ -957,8 +957,10 @@ void
term_window_configured(struct terminal *term)
{
/* Enable ptmx FDM callback */
- assert(term->window->is_configured);
- fdm_add(term->fdm, term->ptmx, EPOLLIN, &fdm_ptmx, term);
+ if (!term->is_shutting_down) {
+ assert(term->window->is_configured);
+ fdm_add(term->fdm, term->ptmx, EPOLLIN, &fdm_ptmx, term);
+ }
}
static bool