Skip to content

Commit e23f2f1

Browse files
committed
defensively capture coroutine args by value
1 parent 3e2866f commit e23f2f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indra/viewer_components/login/lllogin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void LLLogin::Impl::connect(const std::string& uri, const LLSD& login_params)
128128
// Launch a coroutine with our login_() method. Run the coroutine until
129129
// its first wait; at that point, return here.
130130
std::string coroname =
131-
LLCoros::instance().launch("LLLogin::Impl::login_", [&]() { loginCoro(uri, login_params); });
131+
LLCoros::instance().launch("LLLogin::Impl::login_", [=]() { loginCoro(uri, login_params); });
132132

133133
LL_DEBUGS("LLLogin") << " connected with uri '" << uri << "', login_params " << login_params << LL_ENDL;
134134
}

0 commit comments

Comments
 (0)