]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind: make sure we don't process the same method call twice (#6583)
authorLennart Poettering <lennart@poettering.net>
Sat, 26 Aug 2017 13:19:26 +0000 (15:19 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 26 Aug 2017 13:19:26 +0000 (22:19 +0900)
Tiny mistake, big effect.

Fixes: #6375
src/login/logind-session-dbus.c

index 22e5349a67ca0a7e17ae29def9cd1af7949d3e4b..649f3c155eeb84ea7a5c2f5c48048da30f947417 100644 (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);