mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
term: consolidate shutdown related state into an anonymous struct
This commit is contained in:
parent
c23bff4189
commit
03f952cf4d
5 changed files with 48 additions and 39 deletions
6
server.c
6
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue