From d4c1cd77c3fc3bb300007d901ca8853ebbded2ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 22 Oct 2013 13:19:23 -0700 Subject: [PATCH] logind: Remove missing 'else' Only fall through to cleaning up weston-launch or standalone state if we didn't use logind. --- src/launcher-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/launcher-util.c b/src/launcher-util.c index a1ff832e..a599686b 100644 --- a/src/launcher-util.c +++ b/src/launcher-util.c @@ -409,9 +409,9 @@ weston_launcher_connect(struct weston_compositor *compositor, int tty, void weston_launcher_destroy(struct weston_launcher *launcher) { - if (launcher->logind) + if (launcher->logind) { weston_logind_destroy(launcher->logind); - if (launcher->fd != -1) { + } else if (launcher->fd != -1) { close(launcher->fd); wl_event_source_remove(launcher->source); } else {