kidd3166 %!s(int64=2) %!d(string=hai) anos
pai
achega
84beeb9dbf
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  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");