1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 14:34:57 -04:00

Bugfix: make sure device is not open when attempting to closing it

This commit is contained in:
f4exb
2017-04-17 12:00:13 +02:00
parent d9b6dde304
commit 0013ab89ea
5 changed files with 20 additions and 0 deletions
@@ -146,6 +146,10 @@ void BladerfInput::closeDevice()
{
int res;
if (m_dev == 0) { // was never open
return;
}
if ((res = bladerf_enable_module(m_dev, BLADERF_MODULE_RX, false)) < 0)
{
qCritical("BladerfInput::stop: bladerf_enable_module with return code %d", res);