diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-07-31 17:08:51 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-07-31 17:08:51 +0000 |
| commit | 03f952cf4dcf45d909ce209838a3beb4304358e5 (patch) | |
| tree | dd5a0718daa3b11c7e7ae8af923a54afcf260e88 /server.c | |
| parent | term: rename: slave_died() -> fdm_client_terminated() (diff) | |
term: consolidate shutdown related state into an anonymous struct
Diffstat (limited to 'server.c')
| -rw-r--r-- | server.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |
