kidd3166 1 год назад
Родитель
Сommit
473c7ac2c5
2 измененных файлов с 3 добавлено и 1 удалено
  1. 2 1
      lib/application.dart
  2. 1 0
      lib/widgets/dialog/search_device_connect.dart

+ 2 - 1
lib/application.dart

@@ -95,7 +95,8 @@ class Application {
       print(e);
     }
     infos.forEach((key, value) {
-      infos[key] = Uri.encodeComponent(value);
+      if(value is String)
+        infos[key] = Uri.encodeComponent(value);
     });
     return infos;
   }

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

@@ -47,6 +47,7 @@ class _SearchDeviceConnectDialog extends State<SearchDeviceConnectDialog> with S
     }));
 
     addSubscription(_flutterReactiveBle.connectedDeviceStream.listen((event) {
+      if(_timer == null)return;
       // if (event.failure != null) return;
 
       // print("11111111111111111111111 $event $_timer");