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) {
LimeSDRSourceModule* _this = (LimeSDRSourceModule*)ctx;
if (_this->running) { return; }
if (_this->selectedDevName.empty()) { return; }
// Open device
_this->openDev = NULL;
@ -546,4 +547,4 @@ MOD_EXPORT void _DELETE_INSTANCE_(ModuleManager::Instance* instance) {
MOD_EXPORT void _END_() {
config.disableAutoSave();
config.save();
}
}