mirror of
https://github.com/mik3y/usb-serial-for-android
synced 2025-06-07 16:06:10 +00:00
Combine usbRequest.cancel() and releaseInterface to interrupt read() and terminate SerialInputOutputManager. UsbRequest.cancel() immediately interrupts read() on newer Android versions. With releaseInterface() only, some hickup are observed on fast reconnect. Keep releaseInterface() as only this interrupts read() on older Androids.