Skip to content

De-dupe isolate logic in service_manager #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 28, 2018

Conversation

kenzieschmoll
Copy link
Member

Previously we had _selectedIsolate and _flutterIsolate. These should be the same thing and we do not need both. Removed _flutterIsolate.

@kenzieschmoll kenzieschmoll merged commit 6fd3899 into flutter:master Dec 28, 2018
for (IsolateRef ref in isolates) {
// Populate flutter isolate info.
if (_flutterIsolate == null) {
if (_selectedIsolate == null) {
Copy link
Member

Choose a reason for hiding this comment

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

We may want a notion of a list of flutter isolates, and a selected flutter isolate, and a separate notion of a list of all isolates, and a selected isolate. Right now we don't have the ability to have a selected isolate which is not a flutter isolate (I had been using a command-line app for testing).

Copy link
Member Author

Choose a reason for hiding this comment

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

Would this be a sufficient solution? It would guarantee we always have a selected isolate even if none are flutter isolates.

After for loop:
_selectedIsollate ??= isolates.isEmpty ? null : isolates.first;

If that is not sufficient, it sounds like we probably need to revert the changes in this CL.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh nevermind, I see you added this change to #80.

@kenzieschmoll kenzieschmoll deleted the service_manager branch February 13, 2019 18:32
hrajwade96 pushed a commit to hrajwade96/devtools that referenced this pull request Dec 18, 2024
fix "setState() called after dispose()" in build() method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants