Skip to content

Disable shutdown function when not registered#773

Merged
denis-sokolov merged 2 commits intofilp:masterfrom
DvdGiessen:unregister_shutdown_function
Jun 16, 2025
Merged

Disable shutdown function when not registered#773
denis-sokolov merged 2 commits intofilp:masterfrom
DvdGiessen:unregister_shutdown_function

Conversation

@DvdGiessen
Copy link
Copy Markdown
Contributor

@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.

@denis-sokolov denis-sokolov force-pushed the unregister_shutdown_function branch from 57f357c to db0f04f Compare June 16, 2025 00:00
@denis-sokolov denis-sokolov merged commit 59a123a into filp:master Jun 16, 2025
9 checks passed
@denis-sokolov
Copy link
Copy Markdown
Collaborator

Thank you! 2.18.3

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