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

Prevent using disposed of timers #213271

Merged
merged 2 commits into from
May 23, 2024
Merged

Prevent using disposed of timers #213271

merged 2 commits into from
May 23, 2024

Conversation

mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented May 22, 2024

If a timer has been disposed of, warn and don't schedule the callback. This is needed as otherwise the timer very likely ends up being leaked

If a timer has been disposed of, warn and don't schedule the callback. This is needed as otherwise the timer very likely ends up being leaked
@vscodenpa vscodenpa added this to the May 2024 milestone May 22, 2024
@mjbvz mjbvz enabled auto-merge (squash) May 23, 2024 00:05
@mjbvz mjbvz merged commit 79d8e98 into microsoft:main May 23, 2024
6 checks passed
andremmsilva pushed a commit to PIC1G55/vscodeG55 that referenced this pull request May 26, 2024
* Prevent using disposed of timers

If a timer has been disposed of, warn and don't schedule the callback. This is needed as otherwise the timer very likely ends up being leaked

* Throw errors instead
@microsoft microsoft locked and limited conversation to collaborators Jul 7, 2024
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.

3 participants