1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-18 14:31:23 +02:00

Stop timeout handler before connecting to scale

This commit is contained in:
Erik Johansson
2018-10-15 21:57:17 +02:00
parent 23491ee60c
commit e97b176529

View File

@@ -468,7 +468,8 @@ public abstract class BluetoothCommunication {
if (!device.getAddress().equals(hwAddress)) {
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() {
@Override
public void run() {