diff options
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/logind-dbus.c | 1 | ||||
-rw-r--r-- | src/login/logind-session.c | 3 | ||||
-rw-r--r-- | src/login/logind-session.h | 1 |
3 files changed, 0 insertions, 5 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 9538150e2e..a4bdf5f28c 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -1252,7 +1252,6 @@ static int have_multiple_sessions( * count, and non-login sessions do not count either. */ HASHMAP_FOREACH(session, m->sessions, i) if (session->class == SESSION_USER && - !session->closing && session->user->uid != uid) return true; diff --git a/src/login/logind-session.c b/src/login/logind-session.c index a72b13ee03..beaa60124f 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -954,9 +954,6 @@ void session_add_to_gc_queue(Session *s) { SessionState session_get_state(Session *s) { assert(s); - if (s->closing) - return SESSION_CLOSING; - if (s->scope_job) return SESSION_OPENING; diff --git a/src/login/logind-session.h b/src/login/logind-session.h index 939476af55..ee931013dd 100644 --- a/src/login/logind-session.h +++ b/src/login/logind-session.h @@ -107,7 +107,6 @@ struct Session { bool in_gc_queue:1; bool started:1; - bool closing:1; sd_bus_message *create_message; |