diff options
author | Jacek Antonelli | 2008-08-15 23:44:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:57 -0500 |
commit | da68d3a57ecb27eba5d7efb8ff77d9640c0be65e (patch) | |
tree | f2fa2b9ed6e8cf49c8a3cb2a1893c4e5c61916a1 /linden/indra/llmessage/llcachename.cpp | |
parent | Second Life viewer sources 1.15.1.3 (diff) | |
download | meta-impy-da68d3a57ecb27eba5d7efb8ff77d9640c0be65e.zip meta-impy-da68d3a57ecb27eba5d7efb8ff77d9640c0be65e.tar.gz meta-impy-da68d3a57ecb27eba5d7efb8ff77d9640c0be65e.tar.bz2 meta-impy-da68d3a57ecb27eba5d7efb8ff77d9640c0be65e.tar.xz |
Second Life viewer sources 1.16.0.5
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/llcachename.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/linden/indra/llmessage/llcachename.cpp b/linden/indra/llmessage/llcachename.cpp index 1cc7e09..3df4b82 100644 --- a/linden/indra/llmessage/llcachename.cpp +++ b/linden/indra/llmessage/llcachename.cpp | |||
@@ -528,26 +528,28 @@ void LLCacheName::get(const LLUUID& id, BOOL is_group, LLCacheNameCallback callb | |||
528 | LLCacheNameEntry* entry = get_ptr_in_map(impl.mCache, id ); | 528 | LLCacheNameEntry* entry = get_ptr_in_map(impl.mCache, id ); |
529 | if (entry) | 529 | if (entry) |
530 | { | 530 | { |
531 | if (!entry->mIsGroup) | 531 | // id found in map therefore we can call the callback immediately. |
532 | if (entry->mIsGroup) | ||
532 | { | 533 | { |
533 | callback(id, entry->mFirstName, entry->mLastName, entry->mIsGroup, user_data); | 534 | callback(id, entry->mGroupName, "", entry->mIsGroup, user_data); |
534 | } | 535 | } |
535 | else | 536 | else |
536 | { | 537 | { |
537 | callback(id, entry->mGroupName, "", entry->mIsGroup, user_data); | 538 | callback(id, entry->mFirstName, entry->mLastName, entry->mIsGroup, user_data); |
538 | } | 539 | } |
539 | } | 540 | } |
540 | else | 541 | else |
541 | { | 542 | { |
543 | // id not found in map so we must queue the callback call until available. | ||
542 | if (!impl.isRequestPending(id)) | 544 | if (!impl.isRequestPending(id)) |
543 | { | 545 | { |
544 | if (!is_group) | 546 | if (is_group) |
545 | { | 547 | { |
546 | impl.mAskNameQueue.insert(id); | 548 | impl.mAskGroupQueue.insert(id); |
547 | } | 549 | } |
548 | else | 550 | else |
549 | { | 551 | { |
550 | impl.mAskGroupQueue.insert(id); | 552 | impl.mAskNameQueue.insert(id); |
551 | } | 553 | } |
552 | } | 554 | } |
553 | impl.mReplyQueue.push_back(PendingReply(id, callback, user_data)); | 555 | impl.mReplyQueue.push_back(PendingReply(id, callback, user_data)); |