1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-31 14:50:15 +03:00

logind: make sure we don't process the same method call twice (#6583)

Tiny mistake, big effect.

Fixes: #6375
This commit is contained in:
Lennart Poettering 2017-08-26 15:19:26 +02:00 committed by Yu Watanabe
parent 5ce96b141a
commit 2e681921c9

View File

@ -457,7 +457,7 @@ static int method_take_device(sd_bus_message *message, void *userdata, sd_bus_er
goto error;
session_save(s);
return 0;
return 1;
error:
session_device_free(sd);