From 7a16e387eef015092c49b9c0a947239ff67153eb Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 16 Mar 2020 11:28:11 +0100 Subject: Fix handling of ZMQ input timeouts This is an issue since 32f9e6e --- src/DabMod.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/DabMod.cpp b/src/DabMod.cpp index d624a12..436ce9a 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -528,6 +528,7 @@ static run_modulator_state_t run_modulator(modulator_data& m) else { throw logic_error("Unhandled framesize==0!"); } + continue; } else if (framesize < 0) { etiLog.level(error) << "Input read error."; @@ -542,6 +543,8 @@ static run_modulator_state_t run_modulator(modulator_data& m) throw std::runtime_error("ETI read error"); } + last_frame_received = chrono::steady_clock::now(); + fct = m.etiReader->getFct(); fp = m.etiReader->getFp(); } -- cgit v1.2.3