summaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/main.c')
-rw-r--r--src/core/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 38c69b0a..94d56917 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -362,12 +362,11 @@ static void
meta_finalize (void)
{
MetaDisplay *display = meta_get_display();
-
- meta_session_shutdown ();
-
if (display)
meta_display_close (display,
CurrentTime); /* I doubt correct timestamps matter here */
+
+ meta_session_shutdown ();
}
static int sigterm_pipe_fds[2] = { -1, -1 };