diff options
| author | Richard Linden <none@none> | 2010-10-08 17:37:38 -0700 |
|---|---|---|
| committer | Richard Linden <none@none> | 2010-10-08 17:37:38 -0700 |
| commit | 77d1fa974ad6cc9be0b84e574b455693bfa7f702 (patch) | |
| tree | bdd33720153e1962a554ba8b5c9046e98ab956ed /indra/newview/llappviewer.cpp | |
| parent | 688c2a73cdf982a4fe5ee0bfea0a52135fc461ef (diff) | |
added "FastQuit" option for forceful termination, default is off
Diffstat (limited to 'indra/newview/llappviewer.cpp')
| -rw-r--r-- | indra/newview/llappviewer.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index e6661e4c9a..91fae709df 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -2879,8 +2879,22 @@ void LLAppViewer::forceQuit() LLApp::setQuitting(); } +void LLAppViewer::fastQuit() +{ + if (LLStartUp::getStartupState() >= STATE_STARTED) + { + sendLogoutRequest(); + } + _exit(isError()); +} + void LLAppViewer::requestQuit() { + if (gSavedSettings.getBOOL("FastQuit")) + { + fastQuit(); + } + llinfos << "requestQuit" << llendl; LLViewerRegion* region = gAgent.getRegion(); |
