Skip to content

[flutter_tools] Fix race condition with completer in devfs_web#109059

Merged
auto-submit[bot] merged 6 commits intoflutter:masterfrom
chris-forks:fix-race-condition-with-completer
Aug 9, 2022
Merged

[flutter_tools] Fix race condition with completer in devfs_web#109059
auto-submit[bot] merged 6 commits intoflutter:masterfrom
chris-forks:fix-race-condition-with-completer

Conversation

@christopherfujino
Copy link
Contributor

@christopherfujino christopherfujino commented Aug 5, 2022

Fixes #96988

Checking if the future was completed in the async stream handler was a bug, so instead we use a bool to keep track of if we've already seen the first connection.

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Aug 5, 2022
@christopherfujino christopherfujino marked this pull request as ready for review August 9, 2022 21:54
Copy link
Member

@elliette elliette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work figuring out how to test this!

@christopherfujino christopherfujino added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 9, 2022
@auto-submit auto-submit bot merged commit 017dd3e into flutter:master Aug 9, 2022
@christopherfujino christopherfujino deleted the fix-race-condition-with-completer branch August 10, 2022 00:02
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 10, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Aug 10, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Aug 10, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Aug 10, 2022
camsim99 pushed a commit to camsim99/flutter that referenced this pull request Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tool_crash] StateError: Bad state: Future already completed

2 participants