felHR85 / UsbSerial

Usb serial controller for Android
MIT License
1.8k stars 585 forks source link

After closing the UsbSerialDevice, UsbSerialDevice$WriteThread.doRun method not stopped. #269

Open aroraprateek202112 opened 5 years ago

aroraprateek202112 commented 5 years ago

I have closed the UsbSerialDeice, but if I print the stacktrace of Threads, this the trace I am getting.

"Thread-1001" prio=5 tid=61 Waiting | group="main" sCount=1 dsCount=0 obj=0x12faf6a0 self=0xb829a170 | sysTid=28019 nice=0 cgrp=default sched=0/0 handle=0x92206930 | state=S schedstat=( 2276484 8312955 9 ) utm=0 stm=0 core=2 HZ=100 | stack=0x92104000-0x92106000 stackSize=1038KB | held mutexes= at java.lang.Object.wait!(Native method)