summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hansen <rhansen@rhansen.org>2023-04-17 16:41:05 -0400
committerRobert Ancell <robert.ancell@gmail.com>2023-04-28 13:34:51 +1200
commit6a5bca08577e4bbba486f09df2cfbd8080643d39 (patch)
tree985b9bb4d35298191ab3e13e704c152b21f47ab7
parent38bb55721a0ad5eb7adfa0aa503ce9dc641bcd1d (diff)
downloadlightdm-git-6a5bca08577e4bbba486f09df2cfbd8080643d39.tar.gz
Delete redundant cleanup code
-rw-r--r--src/seat.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/seat.c b/src/seat.c
index b1850332..de7751a8 100644
--- a/src/seat.c
+++ b/src/seat.c
@@ -767,6 +767,8 @@ session_stopped_cb (Session *session, Seat *seat)
g_clear_object (&priv->active_session);
if (session == priv->next_session)
g_clear_object (&priv->next_session);
+ /* We were waiting for this session, but it didn't start :( */
+ // FIXME: Start a greeter on this?
if (session == priv->session_to_activate)
g_clear_object (&priv->session_to_activate);
@@ -780,11 +782,6 @@ session_stopped_cb (Session *session, Seat *seat)
run_script (seat, display_server, script, session_get_user (session));
}
- /* We were waiting for this session, but it didn't start :( */
- // FIXME: Start a greeter on this?
- if (session == priv->session_to_activate)
- g_clear_object (&priv->session_to_activate);
-
if (priv->stopping)
{
check_stopped (seat);