diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-03-16 11:28:11 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-03-16 11:28:14 +0100 |
commit | 7a16e387eef015092c49b9c0a947239ff67153eb (patch) | |
tree | 2baa0e23ac17eb59221f70c58954e05d7c5f0233 /src | |
parent | 35ccf805ab80df0f3ac67a50cc1694fbe2e1140d (diff) | |
download | dabmod-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.cpp | 3 |
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(); } |