From 394d284f68fbc8a724fae25a0d2d9492a9b4d835 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 30 Nov 2020 11:00:46 +0100 Subject: Common 2ff8a87: ClockTAI: download before expiry --- lib/ClockTAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/ClockTAI.cpp b/lib/ClockTAI.cpp index 2d48d36..626140e 100644 --- a/lib/ClockTAI.cpp +++ b/lib/ClockTAI.cpp @@ -350,7 +350,7 @@ int ClockTAI::get_valid_offset() #endif const auto cache_state = parse_bulletin(cache_bulletin); - if (cache_state.usable()) { + if (cache_state.usable() and not cache_state.expires_soon()) { m_bulletin = cache_bulletin; offset = cache_state.offset; offset_valid = true; -- cgit v1.2.3