mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-07 17:17:44 +03:00
logind: minor simplification
This commit is contained in:
parent
5501da15ba
commit
40771cf524
@ -735,10 +735,9 @@ int session_start(Session *s, sd_bus_message *properties, sd_bus_error *error) {
|
|||||||
/* Send signals */
|
/* Send signals */
|
||||||
session_send_signal(s, true);
|
session_send_signal(s, true);
|
||||||
user_send_changed(s->user, "Display", NULL);
|
user_send_changed(s->user, "Display", NULL);
|
||||||
if (s->seat) {
|
|
||||||
if (s->seat->active == s)
|
if (s->seat && s->seat->active == s)
|
||||||
seat_send_changed(s->seat, "ActiveSession", NULL);
|
seat_send_changed(s->seat, "ActiveSession", NULL);
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user