mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
Bugfix: make sure device is not open when attempting to closing it
This commit is contained in:
@@ -133,6 +133,10 @@ bool LimeSDRInput::openDevice()
|
||||
|
||||
void LimeSDRInput::closeDevice()
|
||||
{
|
||||
if (m_deviceShared.m_deviceParams->getDevice() == 0) { // was never open
|
||||
return;
|
||||
}
|
||||
|
||||
// release the channel
|
||||
|
||||
if (LMS_EnableChannel(m_deviceShared.m_deviceParams->getDevice(), LMS_CH_RX, m_deviceShared.m_channel, false) != 0)
|
||||
|
||||
Reference in New Issue
Block a user