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 race on stopping monitor #1377

Merged
merged 2 commits into from
Dec 1, 2022
Merged

Fix race on stopping monitor #1377

merged 2 commits into from
Dec 1, 2022

Conversation

WardenGnaw
Copy link
Member

This PR fixes the race condition when disposing of the RegistryMonitor and when detecting the stop.

This PR modifies Dispose to call Stop() which will cause the wait handler to fire and stop the Monitor thread which will properly dispose of the object.

This PR fixes the race condition when disposing of the RegistryMonitor
and when detecting the stop.

This PR modifies Dispose to call Stop() which will cause the wait
handler to fire and stop the Monitor thread which will properly dispose
of the object.
@WardenGnaw WardenGnaw merged commit 51a363e into main Dec 1, 2022
@WardenGnaw WardenGnaw deleted the dev/waan/fixDisposeException branch April 5, 2023 00:32
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.

2 participants