logind: when creating the scope job fails, return this immediately to the client that wants to register the session

Otherwise we'll hanging for the job to finish without any job existing.

Similar, for machined.
This commit is contained in:
Lennart Poettering 2013-07-10 23:33:17 +02:00
parent 6797c324a6
commit f2d4f98d58
2 changed files with 2 additions and 0 deletions

View file

@ -480,6 +480,7 @@ static int session_start_scope(Session *s) {
dbus_error_free(&error);
free(scope);
return r;
} else {
s->scope = scope;

View file

@ -247,6 +247,7 @@ static int machine_start_scope(Machine *m) {
dbus_error_free(&error);
free(scope);
return r;
} else {
m->scope = scope;