Skip to content

Disable shutdown function when not registered #773

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DvdGiessen
Copy link

@DvdGiessen DvdGiessen commented Apr 15, 2025

A proposed fix for #772. We cannot unregister a shutdown function, but we can just make it do nothing. By checking the isRegistered property we can determine whether the shutdown function is supposed to be run at this time.

Still needs a few tests; presumably by calling the shutdown function and checking it does nothing when the instance is no longer registered.

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.

1 participant