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
cf5e4b54
Unverified
Commit
cf5e4b54
authored
Apr 08, 2020
by
Jonah Williams
Committed by
GitHub
Apr 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] fix routing test (#54313)
parent
412e4dd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
vmservice.dart
packages/flutter_tools/lib/src/vmservice.dart
+6
-4
No files found.
packages/flutter_tools/lib/src/vmservice.dart
View file @
cf5e4b54
...
@@ -350,6 +350,9 @@ class VMService implements vm_service.VmService {
...
@@ -350,6 +350,9 @@ class VMService implements vm_service.VmService {
final
io
.
WebSocket
channel
=
await
_openChannel
(
wsUri
.
toString
(),
compression:
compression
);
final
io
.
WebSocket
channel
=
await
_openChannel
(
wsUri
.
toString
(),
compression:
compression
);
final
StreamController
<
dynamic
>
primary
=
StreamController
<
dynamic
>();
final
StreamController
<
dynamic
>
primary
=
StreamController
<
dynamic
>();
final
StreamController
<
dynamic
>
secondary
=
StreamController
<
dynamic
>();
final
StreamController
<
dynamic
>
secondary
=
StreamController
<
dynamic
>();
// Create an instance of the package:vm_service API in addition to the flutter
// tool's to allow gradual migration.
final
Completer
<
void
>
streamClosedCompleter
=
Completer
<
void
>();
channel
.
listen
((
dynamic
data
)
{
channel
.
listen
((
dynamic
data
)
{
primary
.
add
(
data
);
primary
.
add
(
data
);
...
@@ -357,15 +360,14 @@ class VMService implements vm_service.VmService {
...
@@ -357,15 +360,14 @@ class VMService implements vm_service.VmService {
},
onDone:
()
{
},
onDone:
()
{
primary
.
close
();
primary
.
close
();
secondary
.
close
();
secondary
.
close
();
if
(!
streamClosedCompleter
.
isCompleted
)
{
streamClosedCompleter
.
complete
();
}
},
onError:
(
dynamic
error
,
StackTrace
stackTrace
)
{
},
onError:
(
dynamic
error
,
StackTrace
stackTrace
)
{
primary
.
addError
(
error
,
stackTrace
);
primary
.
addError
(
error
,
stackTrace
);
secondary
.
addError
(
error
,
stackTrace
);
secondary
.
addError
(
error
,
stackTrace
);
});
});
// Create an instance of the package:vm_service API in addition to the flutter
// tool's to allow gradual migration.
final
Completer
<
void
>
streamClosedCompleter
=
Completer
<
void
>();
final
vm_service
.
VmService
delegateService
=
vm_service
.
VmService
(
final
vm_service
.
VmService
delegateService
=
vm_service
.
VmService
(
primary
.
stream
,
primary
.
stream
,
channel
.
add
,
channel
.
add
,
...
...
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