From e459214d81c37c388939f64bed293e6615aecec0 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 22 Jul 2016 14:42:42 +0200 Subject: Add 1h retry if TAI offset download failed --- src/ClockTAI.cpp | 3 +++ 1 file changed, 3 insertions(+) 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"); } -- cgit v1.2.3