diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-07-22 14:42:42 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-07-22 14:42:42 +0200 |
commit | e459214d81c37c388939f64bed293e6615aecec0 (patch) | |
tree | 5bcb866225e57dde778402ed0343e93da2ede140 /src/ClockTAI.cpp | |
parent | 3f06bb2b19878246820210aec15542ff8b6b459d (diff) | |
download | dabmux-e459214d81c37c388939f64bed293e6615aecec0.tar.gz dabmux-e459214d81c37c388939f64bed293e6615aecec0.tar.bz2 dabmux-e459214d81c37c388939f64bed293e6615aecec0.zip |
Add 1h retry if TAI offset download failed
Diffstat (limited to 'src/ClockTAI.cpp')
-rw-r--r-- | src/ClockTAI.cpp | 3 |
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"); } |