mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-16 05:11:49 -05:00
Perseus: close device even when open fails
This commit is contained in:
parent
5cb9b6ebed
commit
e9f2680391
@ -34,6 +34,7 @@ void DevicePerseusScan::scan(int nbDevices)
|
|||||||
{
|
{
|
||||||
if ((descr = perseus_open(deviceIndex)) == 0) {
|
if ((descr = perseus_open(deviceIndex)) == 0) {
|
||||||
qCritical("DevicePerseusScan::scan: open error: %s", perseus_errorstr());
|
qCritical("DevicePerseusScan::scan: open error: %s", perseus_errorstr());
|
||||||
|
perseus_close(descr);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user