From caccb7a9e15cf70029423889070658a143565ba4 Mon Sep 17 00:00:00 2001 From: Arseny Smirnov Date: Sun, 17 Mar 2019 23:29:32 +1300 Subject: [PATCH] minor fix GitOrigin-RevId: 6e1b3a3cebcea9311898e3a87da2d7a90b0d0305 --- td/telegram/net/Session.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/td/telegram/net/Session.cpp b/td/telegram/net/Session.cpp index 8a563602..a23be873 100644 --- a/td/telegram/net/Session.cpp +++ b/td/telegram/net/Session.cpp @@ -1200,10 +1200,10 @@ void Session::loop() { connection_send_bind_key(&main_connection_); need_flush = true; } - if (can_destroy_auth_key()) { - if (main_connection_.connection) { - main_connection_.connection->destroy_key(); - } + } + if (can_destroy_auth_key()) { + if (main_connection_.connection) { + main_connection_.connection->destroy_key(); } } if (need_flush) {