From 7e72aefda5d26723a19fde1d7133c843fa4ab297 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Wed, 29 Jan 2014 18:32:32 +0100 Subject: [PATCH] Minor change: Only save antispam data if we actually sent a request --- indra/newview/NACLantispam.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/indra/newview/NACLantispam.cpp b/indra/newview/NACLantispam.cpp index 1ff5251042..36096cfef2 100644 --- a/indra/newview/NACLantispam.cpp +++ b/indra/newview/NACLantispam.cpp @@ -401,7 +401,8 @@ bool NACLAntiSpamRegistry::checkQueue(EAntispamQueue queue, const LLUUID& source if (sourcetype == ANTISPAM_SOURCE_OBJECT) { - mObjectData[source] = data; + bool sent = false; + for (LLWorld::region_list_t::const_iterator iter = LLWorld::getInstance()->getRegionList().begin(); iter != LLWorld::getInstance()->getRegionList().end(); ++iter) { @@ -416,8 +417,14 @@ bool NACLAntiSpamRegistry::checkQueue(EAntispamQueue queue, const LLUUID& source gMessageSystem->addU32Fast(_PREHASH_RequestFlags, 0); gMessageSystem->addUUIDFast(_PREHASH_ObjectID, source); gMessageSystem->sendReliable(region->getHost()); + sent = true; } } + + if (sent) + { + mObjectData[source] = data; + } } else if (sourcetype == ANTISPAM_SOURCE_AGENT) {