logind: Remove missing 'else'
Only fall through to cleaning up weston-launch or standalone state if we didn't use logind.
This commit is contained in:
parent
10ddd97ecf
commit
d4c1cd77c3
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue