mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:52:57 +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
1 changed files with 6 additions and 0 deletions
|
@ -850,6 +850,12 @@ void app_shutdown(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_shutdown();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue