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

Change logic related to disposed checkerPools #941

Merged
merged 4 commits into from
Aug 19, 2024

Conversation

keyboardDrummer
Copy link
Collaborator

@keyboardDrummer keyboardDrummer commented Aug 16, 2024

Attempt to fix this: #937

if (disposed) {
throw new Exception("CheckerPool was already disposed");
}

await checkersSemaphore.WaitAsync(cancellationToken);
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems that this task will still not be cancelled if the checkerpool is disposed of. Can you indicate me how it could be otherwise?

Copy link
Collaborator Author

@keyboardDrummer keyboardDrummer Aug 19, 2024

Choose a reason for hiding this comment

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

The call await checkersSemaphore.WaitAsync(cancellationToken); throws an ObjectDisposedException if the CheckerPool is or gets disposed.

@keyboardDrummer keyboardDrummer merged commit 16c53d9 into boogie-org:master Aug 19, 2024
5 checks passed
@keyboardDrummer keyboardDrummer deleted the changeDisposeLogic branch August 19, 2024 10:29
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