Make sure to definitely stop typing after 5 secs, even if we don't receive the timeout via process_chat_from_simulator

meow-7.2.2
Ansariel 2017-03-15 23:32:21 +01:00
parent 00d085c575
commit 40bb92c99f
1 changed files with 7 additions and 0 deletions

View File

@ -1008,6 +1008,13 @@ void LLVOAvatarSelf::idleUpdate(LLAgent &agent, const F64 &time)
{
LLVOAvatar::idleUpdate(agent, time);
idleUpdateTractorBeam();
// <FS:Ansariel> Make sure to definitely stop typing
if ((gAgent.getTypingTime() > LLAgent::TYPING_TIMEOUT_SECS) && (gAgent.getRenderState() & AGENT_STATE_TYPING))
{
gAgent.stopTyping();
}
// </FS:Ansariel>
}
}