To prevent logout crahes, do not call logPendingPhases once gAgentAvatarp is 0.

Nicky 2013-03-13 18:07:40 +01:00
parent 26114cc195
commit 4f2f604e56
1 changed files with 7 additions and 1 deletions

View File

@ -761,8 +761,14 @@ LLVOAvatar::~LLVOAvatar()
debugAvatarRezTime("AvatarRezLeftNotification","left sometime after declouding");
}
logPendingPhases();
// <FS:ND> only call logPendingPhases if we're still alive. Otherwise this can lead to shutdown crashes
// logPendingPhases();
if (isAgentAvatarValid())
logPendingPhases();
// </FS:ND>
lldebugs << "LLVOAvatar Destructor (0x" << this << ") id:" << mID << llendl;
std::for_each(mAttachmentPoints.begin(), mAttachmentPoints.end(), DeletePairedPointer());