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 disposing of CancellationTokenSource with registrations. #226

Merged
merged 1 commit into from
Feb 3, 2016

Conversation

nlutsenko
Copy link
Member

If you have registered at least 1 registration for the cancellation token and trying to dispose it - it will crash,
as we are enforcing that the disposal of registration happens before the disposal of cancellation token source,
even in case of internal API usage.

  • Add a test that fails
  • Fix the test by moving the disposal setter to after the registration disposal.

@nlutsenko nlutsenko force-pushed the nlutsenko.cancellationToken branch from 37d6aa8 to 77a6c98 Compare February 2, 2016 03:43
@nlutsenko nlutsenko added this to the 1.7.0 milestone Feb 2, 2016
nlutsenko added a commit that referenced this pull request Feb 3, 2016
Fix disposing of CancellationTokenSource with registrations.
@nlutsenko nlutsenko merged commit cbb8ef4 into master Feb 3, 2016
@nlutsenko nlutsenko deleted the nlutsenko.cancellationToken branch February 3, 2016 04:00
@facebook-github-bot
Copy link
Contributor

@nlutsenko updated the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants