This commit is contained in:
Shyotl
2012-06-09 01:57:21 -05:00
parent bb8417d6be
commit 1a217b23c6
2 changed files with 20 additions and 3 deletions

View File

@@ -31,6 +31,7 @@
// Viewer includes
#include "llagent.h"
#include "llviewergenericmessage.h"
#include "llstartup.h"
// Linden library includes
#include "llavatarconstants.h" // AVATAR_TRANSACTED, etc.
@@ -111,6 +112,14 @@ void LLAvatarPropertiesProcessor::sendGenericRequest(const LLUUID& avatar_id, EA
void LLAvatarPropertiesProcessor::sendAvatarPropertiesRequest(const LLUUID& avatar_id)
{
// this is the startup state when send_complete_agent_movement() message is sent.
// Before this, the AvatarPropertiesRequest message
// won't work so don't bother trying
if (LLStartUp::getStartupState() <= STATE_AGENT_SEND)
{
return;
}
if (isPendingRequest(avatar_id, APT_PROPERTIES))
{
// waiting for a response, don't re-request