From 81890f309fcd08032ee5e182ff869347b33cad33 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 21 Oct 2018 01:36:26 +0300 Subject: [PATCH] Workaround clang ICE "ran out of registers during register allocation". GitOrigin-RevId: d977f131b117c3d3907e505c6245ff587b7c6db0 --- td/mtproto/SessionConnection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td/mtproto/SessionConnection.cpp b/td/mtproto/SessionConnection.cpp index a12b924e..89acc64d 100644 --- a/td/mtproto/SessionConnection.cpp +++ b/td/mtproto/SessionConnection.cpp @@ -681,9 +681,9 @@ Status SessionConnection::init() { void SessionConnection::set_online(bool online_flag) { online_flag_ = online_flag; if (online_flag_) { - last_pong_at_ = Time::now_cached() - ping_disconnect_delay() + rtt(); // disconnect if no ping in 1 second + last_pong_at_ = Time::now() - ping_disconnect_delay() + rtt(); } else { - last_pong_at_ = Time::now_cached(); + last_pong_at_ = Time::now(); } last_ping_at_ = 0; last_ping_message_id_ = 0;