quicktime_video_hack icon indicating copy to clipboard operation
quicktime_video_hack copied to clipboard

Fix infinite loop when unable to re-open device after activating QT config

Open cameronbroe opened this issue 3 years ago • 0 comments

I notice that the intended behavior is to attempt to re-open a device 10 times and return an error if the USB context can not be reopened. However, the actual behavior is an infinite loop of trying to reopen the context. This PR prevents that infinite loop from happening and appropriately exits and logs after 10 tries. I encountered this code path on my own device and had to manually send Ctrl-C to retry the activation.

cameronbroe avatar Jul 27 '21 18:07 cameronbroe