From 3216daec2b42e1a49c13fce2d791d848c68deb26 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Mon, 20 Jul 2020 17:29:13 +0200 Subject: [PATCH] fixed crash when no dev detected --- src/io/soapy.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/io/soapy.h b/src/io/soapy.h index 1f1af4bb..c0776929 100644 --- a/src/io/soapy.h +++ b/src/io/soapy.h @@ -11,6 +11,9 @@ namespace io { output.init(64000); currentGains = new float[1]; refresh(); + if (devList.size() == 0) { + return; + } setDevice(devList[0]); }