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;