mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-18 22:41:44 +02:00
Stop timeout handler before connecting to scale
This commit is contained in:
@@ -468,7 +468,8 @@ public abstract class BluetoothCommunication {
|
|||||||
if (!device.getAddress().equals(hwAddress)) {
|
if (!device.getAddress().equals(hwAddress)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Stop scan and connect to the device on the main thread
|
// Stop timeout and connect to the device on the main thread
|
||||||
|
handler.removeCallbacksAndMessages(leScanCallback);
|
||||||
handler.post(new Runnable() {
|
handler.post(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
Reference in New Issue
Block a user