Skip to content
Snippets Groups Projects
Commit b49f6e1e authored by simon's avatar simon
Browse files

Clean up LLSingleton work - special case to re-create instance if it's been deleted.

parent 6e483af1
No related branches found
No related tags found
No related merge requests found
...@@ -145,7 +145,9 @@ class LLSingleton : private boost::noncopyable ...@@ -145,7 +145,9 @@ class LLSingleton : private boost::noncopyable
if (data.mInitState == DELETED) if (data.mInitState == DELETED)
{ {
llwarns << "Trying to access deleted singleton " << typeid(DERIVED_TYPE).name() << " creating new instance" << llendl; llwarns << "Trying to access deleted singleton " << typeid(DERIVED_TYPE).name() << " creating new instance" << llendl;
} data.mSingletonInstance = new DERIVED_TYPE();
data.mInitState = INITIALIZING;
} // Fall into INITIALIZING case below
if (data.mInitState == INITIALIZING) if (data.mInitState == INITIALIZING)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment