aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/ClockTAI.cpp2
1 files changed, 1 insertions, 1 deletions
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;