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
1 changed files with 1 additions and 1 deletions

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);