summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Borovkov <iborovkov@productengine.com>2009-11-03 13:15:15 +0200
committerIgor Borovkov <iborovkov@productengine.com>2009-11-03 13:15:15 +0200
commit01724523cffec8b01ae873ed46cd05ec27a26379 (patch)
treec83d70db82e1bfd9cf6f8fae4d372168b429d72f
parentc940d3d5b92ba915a51e98c9141243ccd6b5145b (diff)
IM: defensive fix to get rid of warnings about attempts to get speaker mgr for removed sessions
--HG-- branch : product-engine
-rw-r--r--indra/newview/llimfloater.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llimfloater.cpp b/indra/newview/llimfloater.cpp
index dee86f4a22..7bad949921 100644
--- a/indra/newview/llimfloater.cpp
+++ b/indra/newview/llimfloater.cpp
@@ -106,6 +106,8 @@ void LLIMFloater::onFocusReceived()
// virtual
void LLIMFloater::onClose(bool app_quitting)
{
+ if (!gIMMgr->hasSession(mSessionID)) return;
+
setTyping(false);
gIMMgr->leaveSession(mSessionID);
}