Skip to content

Commit

Permalink
[fuchsia_reload] Fix port filter (flutter#11828)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderso committed Aug 30, 2017
1 parent def0b42 commit 067048a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/flutter_tools/lib/src/commands/fuchsia_reload.dart
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,12 @@ class FuchsiaReloadCommand extends FlutterCommand {

// Find ports where there is a view isolate with the given name
Future<List<int>> _filterPorts(List<int> ports, String viewFilter) async {
printTrace('Looing for view $viewFilter');
final List<int> result = <int>[];
for (FlutterView v in await _getViews(ports)) {
final Uri addr = v.owner.vmService.httpAddress;
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);
}
return result;
Expand Down

0 comments on commit 067048a

Please sign in to comment.