mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 13:47:01 -04:00
Bugfix: make sure device is not open when attempting to closing it
This commit is contained in:
@@ -111,6 +111,10 @@ bool FCDProPlusInput::start()
|
||||
|
||||
void FCDProPlusInput::closeDevice()
|
||||
{
|
||||
if (m_dev == 0) { // was never open
|
||||
return;
|
||||
}
|
||||
|
||||
fcdClose(m_dev);
|
||||
m_dev = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user