Merge pull request #1013 from sergeyvfx/fix_empty_limesdr_crash

Fix crash starting LimeSDR source without device
This commit is contained in:
AlexandreRouma 2023-03-14 23:00:13 +01:00 committed by GitHub
commit 19247ef4f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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