diff --git a/source_modules/limesdr_source/src/main.cpp b/source_modules/limesdr_source/src/main.cpp index 5f7f4508..51eded74 100644 --- a/source_modules/limesdr_source/src/main.cpp +++ b/source_modules/limesdr_source/src/main.cpp @@ -330,7 +330,9 @@ private: if (err) { LMS_Close(_this->openDev); LMS_Open(&_this->openDev, _this->devList[_this->devId], NULL); - LMS_Init(_this->openDev); + if (LMS_Init(_this->openDev) != 0) { + return; + } } flog::warn("Channel count: {0}", LMS_GetNumChannels(_this->openDev, false));