diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-09-18 11:19:45 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-09-18 11:19:45 +0200 |
commit | de9777f27dbbe350494ba956ac5691a7a87cb892 (patch) | |
tree | 1061252584d94804ce8ebfde5e228a9be2d78858 /src/OutputUHD.h | |
parent | 0e6ca79d9dc6171eeea89d86807c9d7be9bdb305 (diff) | |
download | dabmod-de9777f27dbbe350494ba956ac5691a7a87cb892.tar.gz dabmod-de9777f27dbbe350494ba956ac5691a7a87cb892.tar.bz2 dabmod-de9777f27dbbe350494ba956ac5691a7a87cb892.zip |
Fix segfault on SIGINT before UHD init
Diffstat (limited to 'src/OutputUHD.h')
-rw-r--r-- | src/OutputUHD.h | 4 |
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(); } |