Fix crash starting LimeSDR source without device

This change fixes crash when a LimeSDR source is started without
an actual device selected.
pull/1013/head
Sergey Sharybin 2023-03-14 21:37:22 +01:00
rodzic ab2aee316c
commit ae1fd87f02
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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;