summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-07 17:59:27 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-07 19:26:49 +0100
commit4e2f8d27781731021aa6b96c0ee18a8966eefe1c (patch)
tree81368613a20cc05e97175c9c3fe7c9513f02ca09 /src/login
parentba4c5d93b73ef7bba0ae0c6bf2b36a42360f7a34 (diff)
core: when an already abandoned unit gets abandoned again generate a clean error
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind-dbus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
index 30476f3ea4..651bd801ac 100644
--- a/src/login/logind-dbus.c
+++ b/src/login/logind-dbus.c
@@ -2384,7 +2384,8 @@ int manager_abandon_scope(Manager *manager, const char *scope, sd_bus_error *err
NULL);
if (r < 0) {
if (sd_bus_error_has_name(error, BUS_ERROR_NO_SUCH_UNIT) ||
- sd_bus_error_has_name(error, BUS_ERROR_LOAD_FAILED)) {
+ sd_bus_error_has_name(error, BUS_ERROR_LOAD_FAILED) ||
+ sd_bus_error_has_name(error, BUS_ERROR_SCOPE_NOT_RUNNING)) {
sd_bus_error_free(error);
return 0;
}