From abf32c44cc7b3964ebafd406565381a0ca575690 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 19 Jul 2023 22:41:27 +0300 Subject: [PATCH] Simplify capture by value. --- td/telegram/net/Session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/net/Session.cpp b/td/telegram/net/Session.cpp index c374ac0e1..94b192dd8 100644 --- a/td/telegram/net/Session.cpp +++ b/td/telegram/net/Session.cpp @@ -1209,7 +1209,7 @@ void Session::connection_open(ConnectionInfo *info, double now, bool ask_info) { // NB: rely on constant location of info auto promise = PromiseCreator::cancellable_lambda( info->cancellation_token_source_.get_cancellation_token(), - [actor_id = actor_id(this), info = info](Result> res) { + [actor_id = actor_id(this), info](Result> res) { send_closure(actor_id, &Session::connection_open_finish, info, std::move(res)); });