mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
interrupt thread instead of joining to fix ANR
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user