Commit ea5b867d authored by NiranV's avatar NiranV
Browse files

Fixed: (POTENTIAL) Move Plugin Read Thread killing further to the front of the...

Fixed: (POTENTIAL) Move Plugin Read Thread killing further to the front of the shutdown process in an attempt to reduce or fix the times the Viewer stays alive when quitting from login.
parent 50c82883
......@@ -1705,6 +1705,11 @@ bool LLAppViewer::cleanup()
//ditch LLVOAvatarSelf instance
gAgentAvatarp = NULL;
//BD - Stop the plugin read thread if it's running.
// Do it here to decrease the chance of the plugin becoming unresponsive
// or inaccessible making it impossible for the Viewer to completely quit.
LLPluginProcessParent::setUseReadThread(false);
LLNotifications::instance().clear();
// workaround for DEV-35406 crash on shutdown
......@@ -2008,9 +2013,6 @@ bool LLAppViewer::cleanup()
LLAvatarIconIDCache::getInstance()->save();
// Stop the plugin read thread if it's running.
LLPluginProcessParent::setUseReadThread(false);
LL_INFOS() << "Shutting down Threads" << LL_ENDL;
// Let threads finish
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment