From 0756885eadafbda9763769186f14d728f0887ead Mon Sep 17 00:00:00 2001
From: Nat Goodspeed <nat@lindenlab.com>
Date: Wed, 18 Dec 2019 15:54:00 -0500
Subject: [PATCH] DRTVWR-476: make printActiveCoroutines() output slightly
 clearer.

For the main coroutine on each thread, show the 'main0' (or whatever) name
instead of the empty-string name.
---
 indra/llcommon/llcoros.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/llcommon/llcoros.cpp b/indra/llcommon/llcoros.cpp
index adb86c4e0ba..262929006dd 100644
--- a/indra/llcommon/llcoros.cpp
+++ b/indra/llcommon/llcoros.cpp
@@ -223,7 +223,7 @@ void LLCoros::printActiveCoroutines(const std::string& when)
         {
             F64 life_time = time - cd.mCreationTime;
             LL_CONT << LL_NEWLINE
-                    << cd.mName << ' ' << cd.mStatus << " life: " << life_time;
+                    << cd.getKey() << ' ' << cd.mStatus << " life: " << life_time;
         }
         LL_CONT << LL_ENDL;
         LL_INFOS("LLCoros") << "-----------------------------------------------------" << LL_ENDL;
-- 
GitLab