diff options
Diffstat (limited to 'indra/llmessage')
-rw-r--r-- | indra/llmessage/llcachename.cpp | 14 | ||||
-rw-r--r-- | indra/llmessage/lluseroperation.h | 2 |
2 files changed, 9 insertions, 7 deletions
diff --git a/indra/llmessage/llcachename.cpp b/indra/llmessage/llcachename.cpp index 36cd2ce188..b2e1500859 100644 --- a/indra/llmessage/llcachename.cpp +++ b/indra/llmessage/llcachename.cpp @@ -508,26 +508,28 @@ void LLCacheName::get(const LLUUID& id, BOOL is_group, LLCacheNameCallback callb LLCacheNameEntry* entry = get_ptr_in_map(impl.mCache, id ); if (entry) { - if (!entry->mIsGroup) + // id found in map therefore we can call the callback immediately. + if (entry->mIsGroup) { - callback(id, entry->mFirstName, entry->mLastName, entry->mIsGroup, user_data); + callback(id, entry->mGroupName, "", entry->mIsGroup, user_data); } else { - callback(id, entry->mGroupName, "", entry->mIsGroup, user_data); + callback(id, entry->mFirstName, entry->mLastName, entry->mIsGroup, user_data); } } else { + // id not found in map so we must queue the callback call until available. if (!impl.isRequestPending(id)) { - if (!is_group) + if (is_group) { - impl.mAskNameQueue.insert(id); + impl.mAskGroupQueue.insert(id); } else { - impl.mAskGroupQueue.insert(id); + impl.mAskNameQueue.insert(id); } } impl.mReplyQueue.push_back(PendingReply(id, callback, user_data)); diff --git a/indra/llmessage/lluseroperation.h b/indra/llmessage/lluseroperation.h index ac6590abf9..61456bcdce 100644 --- a/indra/llmessage/lluseroperation.h +++ b/indra/llmessage/lluseroperation.h @@ -1,7 +1,7 @@ /** * @file lluseroperation.h * @brief LLUserOperation class header file - used for message based - * transaction. For example, money transactions. + * transaction. For example, L$ transactions. * * Copyright (c) 2002-$CurrentYear$, Linden Research, Inc. * $License$ |