Skip to content

Commit

Permalink
Revert "Don't wait on listening for streams in DevTools startup (flut…
Browse files Browse the repository at this point in the history
…ter#3320)" (flutter#3321)

This reverts commit c2114dd.
  • Loading branch information
elliette authored Aug 31, 2021
1 parent c2114dd commit bb5e4a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/devtools_app/lib/src/service_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class ServiceConnectionManager {
serviceStreamName,
];

unawaited(Future.wait(streamIds.map((String id) async {
await Future.wait(streamIds.map((String id) async {
try {
await service.streamListen(id);
} catch (e) {
Expand All @@ -287,7 +287,7 @@ class ServiceConnectionManager {
);
}
}
})));
}));
if (service != this.service) {
// A different service has been opened.
return;
Expand Down

0 comments on commit bb5e4a0

Please sign in to comment.