kidd3166 2 年之前
父节点
当前提交
6253f17cb7
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      lib/widgets/dialog/search_device_connect.dart

+ 0 - 3
lib/widgets/dialog/search_device_connect.dart

@@ -111,9 +111,6 @@ class _SearchDeviceConnectDialog extends State<SearchDeviceConnectDialog> with S
   _checkError() {
     setState(() {
       _error = _timer == null && (_state[0] == DeviceConnectionState.disconnected || (_state[1] == DeviceConnectionState.disconnected || _state[1] == DeviceConnectionState.disconnecting));
-      if(_error){
-        bluetooth.disconnectDevice("连接超时");
-      }
       // print("bluetooth - check error $_error $_state ");
     });
     // bool finish = _state[0] == DeviceConnectionState.connected && _state[1] == DeviceConnectionState.connected;