diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-04 02:38:05 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-04 02:38:05 +0200 |
commit | a844d77c21661af3742c6090a3833452021f825c (patch) | |
tree | 2ab71fb15c65c4ada90588e445106c84158ef679 | |
parent | 68d95e66b395ef94f30936fb45b9f86028876ca2 (diff) | |
download | seatd-a844d77c21661af3742c6090a3833452021f825c.tar.xz |
seat: Fix device double-remove
-rw-r--r-- | seatd/seat.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/seatd/seat.c b/seatd/seat.c index 37f2b00..40fbb09 100644 --- a/seatd/seat.c +++ b/seatd/seat.c @@ -86,7 +86,6 @@ int seat_remove_client(struct client *client) { while (!linked_list_empty(&client->devices)) { struct seat_device *device = (struct seat_device *)client->devices.next; seat_close_device(client, device); - linked_list_remove(&device->link); } if (seat->active_client == client) { @@ -392,7 +391,6 @@ int seat_close_client(struct client *client) { if (seat_close_device(client, device) == -1) { log_errorf("unable to close '%s': %s", device->path, strerror(errno)); } - linked_list_remove(&device->link); } client->pending_disable = false; |