1
0
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:
f4exb 2018-02-15 10:53:04 +01:00
parent 5cb9b6ebed
commit e9f2680391

View File

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