diff options
author | Brad Linden <brad@lindenlab.com> | 2024-08-26 15:01:04 -0700 |
---|---|---|
committer | Brad Linden <brad@lindenlab.com> | 2024-08-26 15:01:04 -0700 |
commit | e23f2f1cf7c5a3b34d1635c490e5c8871a4d9d5c (patch) | |
tree | a372beb83eadcb14f19d86e1d3999dd6b11b62bf /indra/viewer_components | |
parent | 3e2866f876696b149cee248e1e9bf5343dff0de6 (diff) |
defensively capture coroutine args by value
Diffstat (limited to 'indra/viewer_components')
-rw-r--r-- | indra/viewer_components/login/lllogin.cpp | 2 |
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; } |