Skip to content
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

Fix sending message to terminated worker #10833

Merged
merged 1 commit into from
Aug 29, 2016

Conversation

paveldk
Copy link
Contributor

@paveldk paveldk commented Aug 23, 2016

The problem appears if you create multiple editors/models and then change the typescript compilation settings. This will dispose (terminate) the worker as first action. then it will dispose all existing models which will try to send messages for "acceptRemovedModel" to the worker(s) but as they are already terminated this will result in error.

I'm not sure if it is a better if the worker is terminated to reject the postMessage request immediately since this will again result in error.

@msftclas
Copy link

Hi @paveldk, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by Microsoft and real humans are currently evaluating your PR.

TTYL, MSBOT;

@paveldk paveldk force-pushed the pkolev/fix-terminated-worker branch from c3b7f7e to 996cf99 Compare August 23, 2016 12:48
@paveldk paveldk force-pushed the pkolev/fix-terminated-worker branch from 996cf99 to b241866 Compare August 23, 2016 13:28
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.002%) to 60.671% when pulling b241866 on paveldk:pkolev/fix-terminated-worker into 20b12fc on Microsoft:master.

@sandy081
Copy link
Member

@dbaeumer Please reassign if you do not own this.

@dbaeumer dbaeumer assigned alexdima and unassigned dbaeumer Aug 25, 2016
@alexdima alexdima added this to the August 2016 milestone Aug 25, 2016
@alexdima
Copy link
Member

Nice catch! Looks good! Thank you for your contribution!

@alexdima alexdima merged commit f954045 into microsoft:master Aug 29, 2016
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants