aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ClockTAI.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ClockTAI.cpp b/src/ClockTAI.cpp
index 22d4d9d..787f1f7 100644
--- a/src/ClockTAI.cpp
+++ b/src/ClockTAI.cpp
@@ -70,6 +70,9 @@ int ClockTAI::get_offset()
m_offset = parse_tai_offset();
}
else {
+ // Try again in 1 hour
+ m_bulletin_download_time += std::chrono::hours(1);
+
throw std::runtime_error("Could not fetch TAI-UTC offset");
}