mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 06:46:39 +02:00
Merge pull request #7378 from AndrewMeadows/exit-immediately
interface avoids registered exit handlers on Release shutdown
This commit is contained in:
commit
df169e5c43
1 changed files with 4 additions and 0 deletions
|
@ -163,5 +163,9 @@ int main(int argc, const char* argv[]) {
|
|||
Application::shutdownPlugins();
|
||||
|
||||
qCDebug(interfaceapp, "Normal exit.");
|
||||
#ifndef DEBUG
|
||||
// HACK: exit immediately (don't handle shutdown callbacks) for Release build
|
||||
_exit(exitCode);
|
||||
#endif
|
||||
return exitCode;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue