summaryrefslogtreecommitdiff
path: root/indra/viewer_components
diff options
context:
space:
mode:
authorBrad Linden <brad@lindenlab.com>2024-08-26 15:01:04 -0700
committerBrad Linden <brad@lindenlab.com>2024-08-26 15:01:04 -0700
commite23f2f1cf7c5a3b34d1635c490e5c8871a4d9d5c (patch)
treea372beb83eadcb14f19d86e1d3999dd6b11b62bf /indra/viewer_components
parent3e2866f876696b149cee248e1e9bf5343dff0de6 (diff)
defensively capture coroutine args by value
Diffstat (limited to 'indra/viewer_components')
-rw-r--r--indra/viewer_components/login/lllogin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/viewer_components/login/lllogin.cpp b/indra/viewer_components/login/lllogin.cpp
index 53bf97a47e..feebecf4cb 100644
--- a/indra/viewer_components/login/lllogin.cpp
+++ b/indra/viewer_components/login/lllogin.cpp
@@ -128,7 +128,7 @@ void LLLogin::Impl::connect(const std::string& uri, const LLSD& login_params)
// Launch a coroutine with our login_() method. Run the coroutine until
// its first wait; at that point, return here.
std::string coroname =
- LLCoros::instance().launch("LLLogin::Impl::login_", [&]() { loginCoro(uri, login_params); });
+ LLCoros::instance().launch("LLLogin::Impl::login_", [=]() { loginCoro(uri, login_params); });
LL_DEBUGS("LLLogin") << " connected with uri '" << uri << "', login_params " << login_params << LL_ENDL;
}