mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[host] app: support force quitting
This makes it much less painful to develop the host, as sometimes it hangs and ^C doesn't work.
This commit is contained in:
parent
192fb1cdc7
commit
10110dd940
@ -850,6 +850,12 @@ void app_shutdown(void)
|
|||||||
|
|
||||||
void app_quit(void)
|
void app_quit(void)
|
||||||
{
|
{
|
||||||
|
if (app.state == APP_STATE_SHUTDOWN)
|
||||||
|
{
|
||||||
|
DEBUG_INFO("Received second shutdown request, force quitting");
|
||||||
|
exit(LG_HOST_EXIT_USER);
|
||||||
|
}
|
||||||
|
|
||||||
app.exitcode = LG_HOST_EXIT_USER;
|
app.exitcode = LG_HOST_EXIT_USER;
|
||||||
app_shutdown();
|
app_shutdown();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user