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:
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user