diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-29 23:49:22 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-29 23:49:22 +0200 |
commit | 5470c481134ab194f32f53fd8d5ba7c916478f74 (patch) | |
tree | 431095b7a02714d4eed970a0708dd13326bf4304 /seatd/seat.c | |
parent | b7b28f06281efa162e1feaa20324012a0ed59dc4 (diff) |
seat: Destroy all clients on teardown
Diffstat (limited to 'seatd/seat.c')
-rw-r--r-- | seatd/seat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/seatd/seat.c b/seatd/seat.c index 40fbb09..fee727c 100644 --- a/seatd/seat.c +++ b/seatd/seat.c @@ -39,9 +39,8 @@ void seat_destroy(struct seat *seat) { assert(seat); while (!linked_list_empty(&seat->clients)) { struct client *client = (struct client *)seat->clients.next; - // This will cause the client to remove itself from the seat assert(client->seat == seat); - client_kill(client); + client_destroy(client); } assert(seat->curttyfd == -1); |