mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[fuchsia_reload] Fix port filter (#11828)
This commit is contained in:
parent
def0b4203a
commit
067048ab64
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user