diff options
author | prep linden <prep@lindenlab.com> | 2011-01-14 15:30:57 -0500 |
---|---|---|
committer | prep linden <prep@lindenlab.com> | 2011-01-14 15:30:57 -0500 |
commit | eec6071766e6fef7015610b002a9bcb09ce36836 (patch) | |
tree | 4f63bb1629b5295a1de10d1a014b5297a6cf34cc /indra/newview/llappviewer.cpp | |
parent | a678ff80af6c48d4232c52aa505b633a1fc22663 (diff) | |
parent | 645da31dd70834dd67a854b3775529154e538d7f (diff) |
merge
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r-- | indra/newview/llappviewer.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 0093279859..7e8c68632d 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -44,6 +44,7 @@ #include "llagentwearables.h" #include "llwindow.h" #include "llviewerstats.h" +#include "llviewerstatsrecorder.h" #include "llmd5.h" #include "llmeshrepository.h" #include "llpumpio.h" @@ -96,6 +97,7 @@ #include "llmemory.h" #include "llprimitive.h" #include "llurlaction.h" +#include "llurlentry.h" #include "llvfile.h" #include "llvfsthread.h" #include "llvolumemgr.h" @@ -670,6 +672,10 @@ bool LLAppViewer::init() mAlloc.setProfilingEnabled(gSavedSettings.getBOOL("MemProfiling")); +#if LL_RECORD_VIEWER_STATS + LLViewerStatsRecorder::initClass(); +#endif + // *NOTE:Mani - LLCurl::initClass is not thread safe. // Called before threads are created. LLCurl::initClass(); @@ -993,6 +999,8 @@ bool LLAppViewer::init() LLAgentLanguage::init(); + + return true; } @@ -1734,6 +1742,10 @@ bool LLAppViewer::cleanup() LLMetricPerformanceTesterBasic::cleanClass() ; +#if LL_RECORD_VIEWER_STATS + LLViewerStatsRecorder::cleanupClass(); +#endif + llinfos << "Cleaning up Media and Textures" << llendflush; //Note: @@ -4610,6 +4622,10 @@ void LLAppViewer::disconnectViewer() cleanup_xfer_manager(); gDisconnected = TRUE; + + // Pass the connection state to LLUrlEntryParcel not to attempt + // parcel info requests while disconnected. + LLUrlEntryParcel::setDisconnected(gDisconnected); } void LLAppViewer::forceErrorLLError() |