-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Bug: DeregisterEventHandler
and RemoveListener
do not work
#92
Comments
I tried to use |
Hookmode is post by default, so I believe it should be: |
I tried |
@roflmuffin Is it still an issue? |
As long as you use the same function reference that was originally used when you called register (and with the same post bool) then yes, it should work. If you provide a basic repro example then I'll be happy to look into it. |
This issue has been marked |
This issue has been automatically marked |
Here is the basic test confirming that DeregisterEventHandler does not deregister event:
There is no "Registered" in the chat on plugin start. |
@roflmuffin I know you have a lot to do. So this is just a gentle reminder that you "'ll be happy to look into it." |
I did have an initial look using the repro code you supplied, and was able to replicate it, but also not entirely sure why its happening. We use a dictionary to store these handlers and then it removes the handler based on the dictionary look up, but for some reason the identity is different, perhaps due to the untyped nature of |
Here's a working version of me registering and de-registering an |
@B3none @roflmuffin
The result is the same, the event is still active :( |
No there is nothing wrong with your syntax, I believe it is an issue on our end since the register requires a strongly typed |
This issue has been automatically marked |
There is now a |
Yes, it works Ok now. Thank you! |
This issue has been automatically marked |
After using these functions, the callbacks still work.
The text was updated successfully, but these errors were encountered: