Fix crash starting LimeSDR source without device

This change fixes crash when a LimeSDR source is started without
an actual device selected.
This commit is contained in:
Sergey Sharybin 2023-03-14 21:37:22 +01:00
parent ab2aee316c
commit ae1fd87f02

View File

@ -319,6 +319,7 @@ private:
static void start(void* ctx) {
LimeSDRSourceModule* _this = (LimeSDRSourceModule*)ctx;
if (_this->running) { return; }
if (_this->devCount == 0) { return; }
// Open device
_this->openDev = NULL;