summaryrefslogtreecommitdiffstats
path: root/src/OutputUHD.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/OutputUHD.h')
-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();
}