mirror of
https://github.com/mik3y/usb-serial-for-android.git
synced 2026-08-11 08:22:52 +00:00
6869eff88a
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.