interrupt thread instead of joining to fix ANR

here
Andreas Shimokawa 2016-04-07 00:21:21 +02:00
parent 6895c5b776
commit b1a93c430d
1 changed files with 1 additions and 5 deletions

View File

@ -48,11 +48,7 @@ public abstract class AbstractSerialDeviceSupport extends AbstractDeviceSupport
// currently only one thread allowed
if (gbDeviceIOThread != null) {
gbDeviceIOThread.quit();
try {
gbDeviceIOThread.join();
} catch (InterruptedException e) {
e.printStackTrace();
}
gbDeviceIOThread.interrupt();
gbDeviceIOThread = null;
}
}