Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
f3c806c9
Unverified
Commit
f3c806c9
authored
Mar 07, 2018
by
shrike69
Committed by
GitHub
Mar 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove _checkPort() when getting flutter views (#15184)
parent
7d0536b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
fuchsia_reload.dart
packages/flutter_tools/lib/src/commands/fuchsia_reload.dart
+0
-15
No files found.
packages/flutter_tools/lib/src/commands/fuchsia_reload.dart
View file @
f3c806c9
...
...
@@ -162,24 +162,9 @@ class FuchsiaReloadCommand extends FlutterCommand {
return
_vmServiceCache
[
port
];
}
Future
<
bool
>
_checkPort
(
int
port
)
async
{
bool
connected
=
true
;
Socket
s
;
try
{
s
=
await
Socket
.
connect
(
ipv4Loopback
,
port
);
}
catch
(
_
)
{
connected
=
false
;
}
if
(
s
!=
null
)
await
s
.
close
();
return
connected
;
}
Future
<
List
<
FlutterView
>>
_getViews
(
List
<
int
>
ports
)
async
{
final
List
<
FlutterView
>
views
=
<
FlutterView
>[];
for
(
int
port
in
ports
)
{
if
(!
await
_checkPort
(
port
))
continue
;
final
VMService
vmService
=
await
_getVMService
(
port
);
await
vmService
.
getVM
();
await
vmService
.
waitForViews
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment