From bf43893503489191b77a22bf85ff332b2c80dc1e Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 16 May 2018 23:12:33 +0300 Subject: [PATCH] Fix false clang warning. GitOrigin-RevId: 02f377c960d360f83452392d5cd76c3f6d4b02a1 --- td/telegram/net/ConnectionCreator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/net/ConnectionCreator.cpp b/td/telegram/net/ConnectionCreator.cpp index 9e7d29c3..27e05264 100644 --- a/td/telegram/net/ConnectionCreator.cpp +++ b/td/telegram/net/ConnectionCreator.cpp @@ -609,7 +609,8 @@ void ConnectionCreator::client_loop(ClientInfo &client) { IPAddress mtproto_ip; // sync part - auto r_socket_fd = [&, dc_id = client.dc_id, allow_media_only = client.allow_media_only]() -> Result { + auto allow_media_only = client.allow_media_only; + auto r_socket_fd = [&, dc_id = client.dc_id]() -> Result { TRY_RESULT(info, dc_options_set_.find_connection(dc_id, allow_media_only, use_proxy)); stat = info.stat; int16 raw_dc_id = narrow_cast(info.option->is_media_only() ? -dc_id.get_raw_id() : dc_id.get_raw_id());