Closed tom42530 closed 1 year ago
UsbRequest.finalize
closes the UsbRequest. With cancel
a SerialInputOutputManager
thread that is blocking in read
serial port is woken up. Have to test what happens if the UsbRequest is closed before
I couldnt reproduce the StrictMode output, only got other unrelated StrictMode output. Closing the usbRequest earlier causes strange NullPointer Exceptions inside Android USB functions. As the object is closed by the finalizer, I keep as is.
Hi,
first thanks for your amazing work.
Seen with strict mode enable aka : StrictMode.enableDefaults(); Ressource mUsbRequest is never closed close method only cancel and set it to null but never call close to release associated ressource. To fix it simply call mUsbRequest.close l.143
Thanks in advance