aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/ClockTAI.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-11-30 11:01:05 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-11-30 11:01:05 +0100
commitfbf20c6eb5c989687d2dcb8e97c8a2af9c51cc90 (patch)
tree3303349880b3f01b401af3b5c42c8d863d52a241 /contrib/ClockTAI.cpp
parent8f1dc553d2eeed2354d6c914c4f1aded20dbb458 (diff)
downloadODR-AudioEnc-fbf20c6eb5c989687d2dcb8e97c8a2af9c51cc90.tar.gz
ODR-AudioEnc-fbf20c6eb5c989687d2dcb8e97c8a2af9c51cc90.tar.bz2
ODR-AudioEnc-fbf20c6eb5c989687d2dcb8e97c8a2af9c51cc90.zip
Common 2ff8a87: ClockTAI: download before expiry
Diffstat (limited to 'contrib/ClockTAI.cpp')
-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;