forked from auracaster/bumble_mirror
close device inside for loop
This commit is contained in:
@@ -281,7 +281,7 @@ async def open_usb_transport(spec):
|
|||||||
):
|
):
|
||||||
found = device
|
found = device
|
||||||
break
|
break
|
||||||
device.close()
|
device.close()
|
||||||
else:
|
else:
|
||||||
found = context.getByVendorIDAndProductID(int(vendor_id, 16), int(product_id, 16), skip_on_error=True)
|
found = context.getByVendorIDAndProductID(int(vendor_id, 16), int(product_id, 16), skip_on_error=True)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user