summaryrefslogtreecommitdiffstats
path: root/lib/ClockTAI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ClockTAI.cpp')
-rw-r--r--lib/ClockTAI.cpp2
1 files changed, 1 insertions, 1 deletions
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;