IM: defensive fix to get rid of warnings about attempts to get speaker mgr for removed sessions

--HG--
branch : product-engine
meow-7.2.2
Igor Borovkov 2009-11-03 13:15:15 +02:00
parent c940d3d5b9
commit 01724523cf
1 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,8 @@ void LLIMFloater::onFocusReceived()
// virtual
void LLIMFloater::onClose(bool app_quitting)
{
if (!gIMMgr->hasSession(mSessionID)) return;
setTyping(false);
gIMMgr->leaveSession(mSessionID);
}