From fbf20c6eb5c989687d2dcb8e97c8a2af9c51cc90 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 30 Nov 2020 11:01:05 +0100 Subject: Common 2ff8a87: ClockTAI: download before expiry --- contrib/ClockTAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/ClockTAI.cpp b/contrib/ClockTAI.cpp index 2d48d36..626140e 100644 --- a/contrib/ClockTAI.cpp +++ b/contrib/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