summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-09-18 11:19:45 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-09-18 11:19:45 +0200
commitde9777f27dbbe350494ba956ac5691a7a87cb892 (patch)
tree1061252584d94804ce8ebfde5e228a9be2d78858
parent0e6ca79d9dc6171eeea89d86807c9d7be9bdb305 (diff)
downloaddabmod-de9777f27dbbe350494ba956ac5691a7a87cb892.tar.gz
dabmod-de9777f27dbbe350494ba956ac5691a7a87cb892.tar.bz2
dabmod-de9777f27dbbe350494ba956ac5691a7a87cb892.zip
Fix segfault on SIGINT before UHD init
-rw-r--r--src/OutputUHD.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/OutputUHD.h b/src/OutputUHD.h
index 124ff93..c38f151 100644
--- a/src/OutputUHD.h
+++ b/src/OutputUHD.h
@@ -152,7 +152,9 @@ class UHDWorker {
}
void stop() {
- uwd->running = false;
+ if (uwd) {
+ uwd->running = false;
+ }
uhd_thread.interrupt();
uhd_thread.join();
}