kidd3166 2 years ago
parent
commit
6253f17cb7
1 changed files with 0 additions and 3 deletions
  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;