diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2017-02-22 12:01:03 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2017-02-22 12:01:03 +1300 |
commit | 29ef819c823062b16deaf89a06978e382755140c (patch) | |
tree | 930aa1feff834ec1f121267b3026961c15eb8919 | |
parent | 8c2a58e02a335f78bf320642b9901c445ea86e38 (diff) | |
download | lightdm-git-29ef819c823062b16deaf89a06978e382755140c.tar.gz |
Fix logic that checked if a session was being stopped
-rw-r--r-- | src/session.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/session.c b/src/session.c index 5e7d4767..5bac9d21 100644 --- a/src/session.c +++ b/src/session.c @@ -913,6 +913,10 @@ session_stop (Session *session) { g_return_if_fail (session != NULL); + if (session->priv->stopping) + return; + session->priv->stopping = TRUE; + /* If can cleanly stop then do that */ if (session_get_is_authenticated (session) && !session->priv->command_run) { @@ -931,10 +935,6 @@ session_stop (Session *session) return; } - if (session->priv->stopping) - return; - session->priv->stopping = TRUE; - return SESSION_GET_CLASS (session)->stop (session); } |