summaryrefslogtreecommitdiff
path: root/indra/llcommon/llwatchdog.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-05-06 06:31:09 +0800
committerErik Kundiman <erik@megapahit.org>2026-05-06 06:31:09 +0800
commit9046c29deefe06be254747458218f3a5409db484 (patch)
tree49a8b6bd48915542b21ddbfb3842d44d1fef2170 /indra/llcommon/llwatchdog.cpp
parent1f6bf2ac2f9829102929cbda398e9fae824bf129 (diff)
parentb44809f740d307615526060e7b57e7705c292347 (diff)
Merge tag 'Second_Life_Release#b44809f7-26.2' into 2026.02
Diffstat (limited to 'indra/llcommon/llwatchdog.cpp')
-rw-r--r--indra/llcommon/llwatchdog.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/llcommon/llwatchdog.cpp b/indra/llcommon/llwatchdog.cpp
index 1622aeb180..66b565c763 100644
--- a/indra/llcommon/llwatchdog.cpp
+++ b/indra/llcommon/llwatchdog.cpp
@@ -191,6 +191,7 @@ void LLWatchdog::remove(LLWatchdogEntry* e)
{
lockThread();
mSuspects.erase(e);
+ mFrozeList.erase(e);
unlockThread();
}
@@ -284,8 +285,9 @@ void LLWatchdog::run()
// Sets watchdog marker file
mCreateMarkerFnc(false);
// If it's mainloop and it somehow recovers, it will re-add itself
- mSuspects.erase(*result);
- mFrozeList.insert(*result);
+ LLWatchdogEntry* froze_entry = *result;
+ mSuspects.erase(result);
+ mFrozeList.insert(froze_entry);
LL_WARNS() << description << LL_ENDL;
}
else
@@ -307,8 +309,9 @@ void LLWatchdog::run()
mCreateMarkerFnc(false);
// Already reported, don't report again.
// If it's mainloop and it somehow recovers, it will re-add itself
+ LLWatchdogEntry* froze_entry = *result;
mSuspects.erase(result);
- mFrozeList.insert(*result);
+ mFrozeList.insert(froze_entry);
}
}
}