logind: Remove missing 'else'

Only fall through to cleaning up weston-launch or standalone state
if we didn't use logind.
dev
Kristian Høgsberg 11 years ago
parent 10ddd97ecf
commit d4c1cd77c3
  1. 4
      src/launcher-util.c

@ -409,9 +409,9 @@ weston_launcher_connect(struct weston_compositor *compositor, int tty,
void void
weston_launcher_destroy(struct weston_launcher *launcher) weston_launcher_destroy(struct weston_launcher *launcher)
{ {
if (launcher->logind) if (launcher->logind) {
weston_logind_destroy(launcher->logind); weston_logind_destroy(launcher->logind);
if (launcher->fd != -1) { } else if (launcher->fd != -1) {
close(launcher->fd); close(launcher->fd);
wl_event_source_remove(launcher->source); wl_event_source_remove(launcher->source);
} else { } else {

Loading…
Cancel
Save