From 03f952cf4dcf45d909ce209838a3beb4304358e5 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 31 Jul 2021 19:08:51 +0200 Subject: term: consolidate shutdown related state into an anonymous struct --- server.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'server.c') diff --git a/server.c b/server.c index 06f477db..7d3d3ca0 100644 --- a/server.c +++ b/server.c @@ -334,9 +334,11 @@ shutdown: fdm_del(fdm, fd); client->fd = -1; - if (client->instance != NULL && !client->instance->terminal->is_shutting_down) + if (client->instance != NULL && + !client->instance->terminal->shutdown.in_progress) + { term_shutdown(client->instance->terminal); - else + } else client_destroy(client); return true; -- cgit v1.3