aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-06-05 16:01:07 -0700
committerJacek Antonelli2010-06-19 02:43:31 -0500
commit35f2f03461ece0a06b01c76d06ec653e7858ad5e (patch)
treee9c3223e67e137312f1fed1317dc5ba08b0e5eab
parentUpdated our client detection list (diff)
downloadmeta-impy-35f2f03461ece0a06b01c76d06ec653e7858ad5e.zip
meta-impy-35f2f03461ece0a06b01c76d06ec653e7858ad5e.tar.gz
meta-impy-35f2f03461ece0a06b01c76d06ec653e7858ad5e.tar.bz2
meta-impy-35f2f03461ece0a06b01c76d06ec653e7858ad5e.tar.xz
Potential fix for #330 (messages in queue cause a crash when logging back in)
-rw-r--r--linden/indra/newview/llappviewer.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index bedb2a0..b8d0d14 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -1190,8 +1190,12 @@ bool LLAppViewer::cleanup()
1190 //clear all the chat off the screen 1190 //clear all the chat off the screen
1191 gConsole->clear(); 1191 gConsole->clear();
1192 1192
1193 if (!mQuitRequested) //if we are doing a soft cleanup, bail here 1193 //if we are doing a soft cleanup, bail here
1194 // But clean up the messaging system first -- MC
1195 if (!mQuitRequested)
1194 { 1196 {
1197 gTransferManager.cleanup();
1198 LLTransferTargetVFile::updateQueue(true); // shutdown LLTransferTargetVFile
1195 return true; 1199 return true;
1196 } 1200 }
1197 // End TransferManager before deleting systems it depends on (Audio, VFS, AssetStorage) 1201 // End TransferManager before deleting systems it depends on (Audio, VFS, AssetStorage)
@@ -2744,11 +2748,11 @@ void LLAppViewer::requestLogout(bool quit_after)
2744 2748
2745 if( (LLStartUp::getStartupState() >= STATE_STARTED) && region ) 2749 if( (LLStartUp::getStartupState() >= STATE_STARTED) && region )
2746 { 2750 {
2747 LLHUDEffectSpiral *effectp = (LLHUDEffectSpiral*)LLHUDManager::getInstance()->createViewerEffect(LLHUDObject::LL_HUD_EFFECT_POINT, TRUE); 2751 LLHUDEffectSpiral *effectp = (LLHUDEffectSpiral*)LLHUDManager::getInstance()->createViewerEffect(LLHUDObject::LL_HUD_EFFECT_POINT, TRUE);
2748 effectp->setPositionGlobal(gAgent.getPositionGlobal()); 2752 effectp->setPositionGlobal(gAgent.getPositionGlobal());
2749 effectp->setColor(LLColor4U(gAgent.getEffectColor())); 2753 effectp->setColor(LLColor4U(gAgent.getEffectColor()));
2750 LLHUDManager::getInstance()->sendEffects(); 2754 LLHUDManager::getInstance()->sendEffects();
2751 effectp->markDead() ;//remove it. 2755 effectp->markDead() ;//remove it.
2752 //send_stats(); if we're quitting the server shouldn't need viewer stats. 2756 //send_stats(); if we're quitting the server shouldn't need viewer stats.
2753 } 2757 }
2754 else 2758 else