From de9777f27dbbe350494ba956ac5691a7a87cb892 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 18 Sep 2015 11:19:45 +0200 Subject: Fix segfault on SIGINT before UHD init --- src/OutputUHD.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.3