Only exec the fallback when in CWM_EXEC_WM state.

Broken quit noticed by Ve Telko.
This commit is contained in:
okan 2018-01-02 14:04:58 +00:00
parent 5672d5d203
commit 50c0a4eef6
1 changed files with 4 additions and 4 deletions

View File

@ -131,11 +131,11 @@ main(int argc, char **argv)
}
}
x_teardown();
if (cwm_status == CWM_EXEC_WM)
if (cwm_status == CWM_EXEC_WM) {
u_exec(Conf.wm_argv);
warnx("'%s' failed to start, restarting fallback", Conf.wm_argv);
u_exec(fallback);
warnx("'%s' failed to start, restarting fallback", Conf.wm_argv);
u_exec(fallback);
}
return(0);
}