Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/utils/ps4_camera_firmware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,12 @@ Optional parameters:

libusb_free_device_list(devs, 1);

libusb_exit(usb_context);
// We would need to properly cleanup the libusb context, but since
// the device we keep opened goes away as part of the firmware upload,
// there are cases where libusb just hangs. Since ps4_camera_firmware_main()
// is only called from the CLI, and the process exits after returning from
// here, let's skip the cleanup and let the operating system take care of it.
//libusb_exit(usb_context);

return 0;
}
Loading