From d763c755e1fd411f2c693c9469649081cf3be364 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 23 May 2018 18:51:58 +0300 Subject: [PATCH] Remove ConnectingToProxy state for MTProto-proxy. GitOrigin-RevId: 21950ac6b0fc00f2b599ae158bb1b4414788d5c6 --- 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 7c3d3903..7ffb10c5 100644 --- a/td/telegram/net/ConnectionCreator.cpp +++ b/td/telegram/net/ConnectionCreator.cpp @@ -509,7 +509,8 @@ void ConnectionCreator::disable_proxy_impl() { } void ConnectionCreator::on_proxy_changed(bool from_db) { - send_closure(G()->state_manager(), &StateManager::on_proxy, active_proxy_id_ != 0); + send_closure(G()->state_manager(), &StateManager::on_proxy, + active_proxy_id_ != 0 && proxies_[active_proxy_id_].type() == Proxy::Type::Socks5); if (!from_db) { for (auto &child : children_) {