aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-03-16 11:28:11 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-03-16 11:28:14 +0100
commit7a16e387eef015092c49b9c0a947239ff67153eb (patch)
tree2baa0e23ac17eb59221f70c58954e05d7c5f0233 /src
parent35ccf805ab80df0f3ac67a50cc1694fbe2e1140d (diff)
downloaddabmod-7a16e387eef015092c49b9c0a947239ff67153eb.tar.gz
dabmod-7a16e387eef015092c49b9c0a947239ff67153eb.tar.bz2
dabmod-7a16e387eef015092c49b9c0a947239ff67153eb.zip
Fix handling of ZMQ input timeouts
This is an issue since 32f9e6e
Diffstat (limited to 'src')
-rw-r--r--src/DabMod.cpp3
1 files changed, 3 insertions, 0 deletions
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();
}