call stopConnecting only once

This commit is contained in:
Andrei Vereha 2021-11-10 23:10:26 +01:00
parent 7ad425ae1d
commit d5ae4cabf2

View file

@ -60,7 +60,6 @@ class QueueThread internal constructor(
//write time
sp.putLong(R.string.key_btwatchdog_lastbark, System.currentTimeMillis())
//toggle BT
pump.stopConnecting()
pump.disconnect("watchdog")
SystemClock.sleep(1000)
val bluetoothAdapter = BluetoothAdapter.getDefaultAdapter()