summaryrefslogtreecommitdiffstats
path: root/src/DabMultiplexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/DabMultiplexer.cpp')
-rw-r--r--src/DabMultiplexer.cpp21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/DabMultiplexer.cpp b/src/DabMultiplexer.cpp
index 28f799d..a755d99 100644
--- a/src/DabMultiplexer.cpp
+++ b/src/DabMultiplexer.cpp
@@ -248,22 +248,19 @@ void DabMultiplexer::prepare()
bool tist_enabled = m_pt.get("general.tist", false);
- try {
- m_clock_tai.get_offset();
- }
- catch (std::runtime_error& e) {
- const char* err_msg =
- "Could not initialise TAI clock properly required by "
- "EDI with timestamp. Do you have a working internet "
- "connection?";
+ if (tist_enabled and edi_conf.enabled) {
+ try {
+ m_clock_tai.get_offset();
+ }
+ catch (std::runtime_error& e) {
+ const char* err_msg =
+ "Could not initialise TAI clock properly required by "
+ "EDI with timestamp. Do you have a working internet "
+ "connection?";
- if (tist_enabled and edi_conf.enabled) {
etiLog.level(error) << err_msg;
throw e;
}
- else {
- etiLog.level(warn) << err_msg;
- }
}
#endif