mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 19:21:53 +03:00
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:
parent
6797c324a6
commit
f2d4f98d58
@ -480,6 +480,7 @@ static int session_start_scope(Session *s) {
|
||||
dbus_error_free(&error);
|
||||
|
||||
free(scope);
|
||||
return r;
|
||||
} else {
|
||||
s->scope = scope;
|
||||
|
||||
|
@ -247,6 +247,7 @@ static int machine_start_scope(Machine *m) {
|
||||
dbus_error_free(&error);
|
||||
|
||||
free(scope);
|
||||
return r;
|
||||
} else {
|
||||
m->scope = scope;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user