From 503abcbbd9267153d4692ec6ea9e69926b005cdf Mon Sep 17 00:00:00 2001 From: yangyakun Date: Tue, 26 Nov 2024 11:14:43 +0800 Subject: [PATCH] =?UTF-8?q?[6.8.0]=20[fix]=20[blu=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E6=93=8D=E4=BD=9C]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/manager/bluetooth/OchBluetoothGattCallback.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/OCH/common/common/src/main/java/com/mogo/och/common/module/manager/bluetooth/OchBluetoothGattCallback.kt b/OCH/common/common/src/main/java/com/mogo/och/common/module/manager/bluetooth/OchBluetoothGattCallback.kt index 83f8892c59..6cc472b179 100644 --- a/OCH/common/common/src/main/java/com/mogo/och/common/module/manager/bluetooth/OchBluetoothGattCallback.kt +++ b/OCH/common/common/src/main/java/com/mogo/och/common/module/manager/bluetooth/OchBluetoothGattCallback.kt @@ -82,8 +82,6 @@ class OchBluetoothGattCallback(device: BluetoothDevice) : BluetoothGattCallback( gatt.discoverServices() //启动服务发现 }else{ isConnected = false - closeConn(false) - connect() Log.i(TAG,"与[${dev.name}]连接断开") } }else{ @@ -171,7 +169,6 @@ class OchBluetoothGattCallback(device: BluetoothDevice) : BluetoothGattCallback( mBluetoothGatt?.close() mBluetoothGatt = null currentTryCount = 0 - isConnected = false if(needCopy&&!isDestory) { BleManager.copy2ScanList(this) }