Skip to content

Fix sending message to terminated worker - #10833

Merged
Alexandru Dima (alexdima) merged 1 commit into
microsoft:masterfrom
paveldk:pkolev/fix-terminated-worker
Aug 29, 2016
Merged

Alexandru Dima (alexdima) merged 1 commit into
microsoft:masterfrom
paveldk:pkolev/fix-terminated-worker

Conversation

@paveldk

Copy link
Copy Markdown
Contributor

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

Hi Pavel Kolev (@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
Pavel Kolev (paveldk) force-pushed the pkolev/fix-terminated-worker branch from 996cf99 to b241866 Compare August 23, 2016 13:28
@coveralls

Copy link
Copy Markdown

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
Copy Markdown
Member

Dirk Bäumer (@dbaeumer) Please reassign if you do not own this.

@alexdima

Copy link
Copy Markdown
Member

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

@alexdima
Alexandru Dima (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