logind: Remove missing 'else'

Only fall through to cleaning up weston-launch or standalone state
if we didn't use logind.
parent 10ddd97e
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment