diff --git a/communication/src/main/java/cn/proxgrind/com/AbsBluetoothSpp.java b/communication/src/main/java/cn/proxgrind/com/AbsBluetoothSpp.java index b2a5c8b0..255c28ae 100644 --- a/communication/src/main/java/cn/proxgrind/com/AbsBluetoothSpp.java +++ b/communication/src/main/java/cn/proxgrind/com/AbsBluetoothSpp.java @@ -26,10 +26,6 @@ import cn.proxgrind.utils.ContextContentProvider; public abstract class AbsBluetoothSpp implements DriverInterface { private Context context = ContextContentProvider.mContext; - //允许失败的次数上限,事不过三... - private static final int FAILD_MAX = 3; - //优化,超过多少次就判断失败,不自动连接! - private int faildCount = 0; //广播对象实例 private static BroadcastReceiver btBroadcastRecv = null; //蓝牙设备套接字 @@ -111,35 +107,31 @@ public abstract class AbsBluetoothSpp implements DriverInterface= FAILD_MAX) { - return false; - } - //进行重试连接! - connect(t); - } catch (InterruptedException e) { - e.printStackTrace(); } return false; }