diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 79955f171d..1761a4a9a9 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -761,8 +761,14 @@ LLVOAvatar::~LLVOAvatar() debugAvatarRezTime("AvatarRezLeftNotification","left sometime after declouding"); } - logPendingPhases(); + // only call logPendingPhases if we're still alive. Otherwise this can lead to shutdown crashes + + // logPendingPhases(); + if (isAgentAvatarValid()) + logPendingPhases(); + // + lldebugs << "LLVOAvatar Destructor (0x" << this << ") id:" << mID << llendl; std::for_each(mAttachmentPoints.begin(), mAttachmentPoints.end(), DeletePairedPointer());