aboutsummaryrefslogtreecommitdiff
path: root/seatd/seat.c
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-11-23 01:03:37 +0100
committerKenny Levinsen <kl@kl.wtf>2020-11-23 17:56:55 +0100
commite0782a825e769c67dab8222911414765c0839d24 (patch)
tree8a4a089d0b2c95630eb8cc71a16ccfac63dd4669 /seatd/seat.c
parentdf8494af61356be3b2c575bd3f6a33090a286248 (diff)
client: More robust handling of client links
Diffstat (limited to 'seatd/seat.c')
-rw-r--r--seatd/seat.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/seatd/seat.c b/seatd/seat.c
index 66b623d..b530a36 100644
--- a/seatd/seat.c
+++ b/seatd/seat.c
@@ -149,9 +149,8 @@ int seat_add_client(struct seat *seat, struct client *client) {
log_debugf("registered client %p as session %d", (void *)client, client->session);
client->seat = seat;
-
- linked_list_insert(&seat->clients, &client->link);
log_debug("added client");
+
return 0;
}
@@ -160,10 +159,6 @@ int seat_remove_client(struct client *client) {
assert(client->seat);
struct seat *seat = client->seat;
-
- // We must first remove the client to avoid reactivation
- linked_list_remove(&client->link);
-
if (seat->next_client == client) {
seat->next_client = NULL;
}