aboutsummaryrefslogtreecommitdiffstats
path: root/src/OutputUHD.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-17 10:57:09 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-17 10:57:09 +0200
commit7d08079131f01b9e0cddc81c0e42e18ec8fa63f8 (patch)
treea9362c6ae0cb6cc5bd00cb0cecbaf9b0e722524f /src/OutputUHD.cpp
parent45c2d54e57bd26ef91d1dd1f011a17f20623443a (diff)
downloaddabmod-7d08079131f01b9e0cddc81c0e42e18ec8fa63f8.tar.gz
dabmod-7d08079131f01b9e0cddc81c0e42e18ec8fa63f8.tar.bz2
dabmod-7d08079131f01b9e0cddc81c0e42e18ec8fa63f8.zip
fix segfault on SIGINT before UHD init completes
Diffstat (limited to 'src/OutputUHD.cpp')
-rw-r--r--src/OutputUHD.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/OutputUHD.cpp b/src/OutputUHD.cpp
index 87ea9c3..c7e9fac 100644
--- a/src/OutputUHD.cpp
+++ b/src/OutputUHD.cpp
@@ -122,8 +122,8 @@ OutputUHD::OutputUHD(
// the buffers at object initialisation.
first_run(true),
gps_fix_verified(false),
+ worker(&uwd),
myDelayBuf(0)
-
{
myConf.muting = true; // is remote-controllable, and reset by the GPS fix check
myConf.staticDelayUs = 0; // is remote-controllable
@@ -269,7 +269,6 @@ OutputUHD::OutputUHD(
OutputUHD::~OutputUHD()
{
MDEBUG("OutputUHD::~OutputUHD() @ %p\n", this);
- worker.stop();
}