summaryrefslogtreecommitdiff
path: root/src/login/logind-dbus.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-11-28 17:29:01 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2013-11-28 17:41:44 +0100
commit486cd82c8f7642016895b72bcc09a1bfe885a783 (patch)
treecb6fac4d2342b24daf66dd66b3894049b1a0f10f /src/login/logind-dbus.c
parentc506027af881a9e4210845a7a8a6ec5910aa0f3b (diff)
logind: remove unused session->closing field
This field is always false, drop it. If you want a reliable way to get session state, call session_get_state(). Testing for any flags directly doesn't work currently so don't pretend it would.
Diffstat (limited to 'src/login/logind-dbus.c')
-rw-r--r--src/login/logind-dbus.c1
1 files changed, 0 insertions, 1 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;