diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2013-08-24 17:28:19 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2013-08-24 17:28:19 +1200 |
commit | f5c94ee608a7c98bffa85783ed1167b83f93a53a (patch) | |
tree | 3279ae6edaffb28b056509d59d4502491b49145e /src/session.c | |
parent | 3601fee960a0e09f02ab4c20f921c952a2a21fa9 (diff) | |
download | lightdm-f5c94ee608a7c98bffa85783ed1167b83f93a53a.tar.gz |
More restructuring to make switching to greeter on switch
Diffstat (limited to 'src/session.c')
-rw-r--r-- | src/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/session.c b/src/session.c index 1ad341c4..9dded6aa 100644 --- a/src/session.c +++ b/src/session.c @@ -527,7 +527,6 @@ gboolean session_start (Session *session) { g_return_val_if_fail (session != NULL, FALSE); - g_return_val_if_fail (session->priv->display_server != NULL, FALSE); return SESSION_GET_CLASS (session)->start (session); } @@ -546,7 +545,8 @@ session_real_start (Session *session) g_return_val_if_fail (session->priv->pid == 0, FALSE); - display_server_connect_session (session->priv->display_server, session); + if (session->priv->display_server) + display_server_connect_session (session->priv->display_server, session); /* Create pipes to talk to the child */ if (pipe (to_child_pipe) < 0 || pipe (from_child_pipe) < 0) |