Commit 067048ab authored by Zachary Anderson's avatar Zachary Anderson Committed by GitHub

[fuchsia_reload] Fix port filter (#11828)

parent def0b420
...@@ -172,11 +172,12 @@ class FuchsiaReloadCommand extends FlutterCommand { ...@@ -172,11 +172,12 @@ class FuchsiaReloadCommand extends FlutterCommand {
// Find ports where there is a view isolate with the given name // Find ports where there is a view isolate with the given name
Future<List<int>> _filterPorts(List<int> ports, String viewFilter) async { Future<List<int>> _filterPorts(List<int> ports, String viewFilter) async {
printTrace('Looing for view $viewFilter');
final List<int> result = <int>[]; final List<int> result = <int>[];
for (FlutterView v in await _getViews(ports)) { for (FlutterView v in await _getViews(ports)) {
final Uri addr = v.owner.vmService.httpAddress; final Uri addr = v.owner.vmService.httpAddress;
printTrace('At $addr, found view: ${v.uiIsolate.name}'); printTrace('At $addr, found view: ${v.uiIsolate.name}');
if (v.uiIsolate.name.indexOf(viewFilter) == 0) if (v.uiIsolate.name.contains(viewFilter))
result.add(addr.port); result.add(addr.port);
} }
return result; return result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment