Preventing crash if shutting down while in login process.

This commit is contained in:
Shyotl
2011-06-18 22:36:44 -05:00
parent 839418991e
commit db2f409ef4

View File

@@ -1569,6 +1569,7 @@ bool LLAppViewer::cleanup()
end_messaging_system();
llinfos << "Message system deleted." << llendflush;
LLUserAuth::getInstance()->reset(); //reset before LLCurl::cleanupClass, else LLCURL::sHandleMutex == NULL
// *NOTE:Mani - The following call is not thread safe.
LLCurl::cleanupClass();
llinfos << "LLCurl cleaned up." << llendflush;