summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-02-13 02:10:45 +0200
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-02-13 03:24:43 +0200
commit60651640a3114dd2c6a8c0f880234921506ab207 (patch)
tree17288cd1ceb31e4b9bbccf0a8944dc2fc895bc86
parentb4a6af57a667d355e7347f1a3c13173b44b361ff (diff)
#5084 Adjust Window's watchdog to only run after login
like mainloop does
-rw-r--r--indra/llwindow/llwindowwin32.cpp2
-rw-r--r--indra/newview/llappviewer.cpp6
2 files changed, 6 insertions, 2 deletions
diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp
index 9d05d7e5a4..2bd9dd053c 100644
--- a/indra/llwindow/llwindowwin32.cpp
+++ b/indra/llwindow/llwindowwin32.cpp
@@ -436,7 +436,7 @@ struct LLWindowWin32::LLWindowWin32Thread : public LL::ThreadPool
{
if (!mWindowTimeout)
{
- mWindowTimeout = std::make_unique<LLWatchdogTimeout>("mainloop");
+ mWindowTimeout = std::make_unique<LLWatchdogTimeout>("WindowThread");
// supposed to be executed within run(),
// so no point checking if thread is alive
resumeTimeout("TimeoutInit");
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 35edbf089e..93a0cd9d43 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -3200,7 +3200,6 @@ bool LLAppViewer::initWindow()
app->createErrorMarker(LAST_EXEC_FROZE);
}
});
- gViewerWindow->getWindow()->initWatchdog();
}
LLNotificationsUI::LLNotificationManager::getInstance();
@@ -5924,6 +5923,11 @@ void LLAppViewer::handleLoginComplete()
{
gLoggedInTime.start();
initMainloopTimeout("Mainloop Init");
+ LLWindow* viewer_window = gViewerWindow->getWindow();
+ if (viewer_window) // in case of a headless client
+ {
+ viewer_window->initWatchdog();
+ }
// Store some data to DebugInfo in case of a freeze.
gDebugInfo["ClientInfo"]["Name"] = LLVersionInfo::instance().getChannel();