diff options
Diffstat (limited to 'libseat')
-rw-r--r-- | libseat/backend/seatd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libseat/backend/seatd.c b/libseat/backend/seatd.c index 1a187b1..46e354d 100644 --- a/libseat/backend/seatd.c +++ b/libseat/backend/seatd.c @@ -478,9 +478,7 @@ static int close_device(struct libseat *base, int device_id) { return -1; } - struct proto_server_device_closed rmsg; - if (read_header(backend, SERVER_DEVICE_CLOSED, sizeof rmsg, false) == SIZE_MAX || - conn_get(backend, &rmsg, sizeof rmsg) == -1) { + if (read_header(backend, SERVER_DEVICE_CLOSED, 0, false) == SIZE_MAX) { return -1; } |