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

Setting handlers, only if it is required by plugins #125

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mgaertne
Copy link
Contributor

I also added the handle_frame event (called once per server frame, i.e. 40 times per second by default) and made the proposed events hot_pluggable, only registered with the C-code if there is an actual plugin making use of it - and deregistering the event if the last plugin that makes use of it unloads.

re: #124

added a constant for hot_pluggable events, that are registered with the underlying C-code on-the-fly and deregistered if the last plugin of that event unloads
removed the default register_handler calls for the now hot_pluggable events
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