The usb_get_port_path() function opens the passed device on FreeBSD,
which fails if the device has already been open.
This fixes bug #1109.
continue;
}
- usb_get_port_path(devlist[i], connection_id, sizeof(connection_id));
-
libusb_close(hdl);
+ usb_get_port_path(devlist[i], connection_id, sizeof(connection_id));
+
if (!strcmp(product, "ChronoVu LA8"))
model = 0;
else if (!strcmp(product, "ChronoVu LA16"))
continue;
}
- usb_get_port_path(devlist[i], connection_id, sizeof(connection_id));
-
libusb_close(hdl);
+ usb_get_port_path(devlist[i], connection_id, sizeof(connection_id));
+
prof = NULL;
for (j = 0; supported_device[j].vid; j++) {
if (des.idVendor == supported_device[j].vid &&
continue;
}
- usb_get_port_path(devlist[i], connection_id, sizeof(connection_id));
-
libusb_close(hdl);
+ usb_get_port_path(devlist[i], connection_id, sizeof(connection_id));
+
prof = NULL;
for (j = 0; supported_fx2[j].vid; j++) {
if (des.idVendor == supported_fx2[j].vid &&