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

[Client] Event unsubscription seems to remove all handlers #656

Open
ithr0n opened this issue Jul 31, 2022 · 1 comment
Open

[Client] Event unsubscription seems to remove all handlers #656

ithr0n opened this issue Jul 31, 2022 · 1 comment

Comments

@ithr0n
Copy link
Contributor

ithr0n commented Jul 31, 2022

I only tested this for Alt.OnKeyUp in combination with the altv-dev-tools resource.
In my example I subscribed to this event in my own resource via Alt.OnKeyUp += Alt_OnKeyUp and at a later point I removed the subscription via Alt.OnKeyUp -= Alt_OnKeyUp.
This caused that after unsubscription the hotkeys of altv-dev-tools didn't work anymore.
When I remove Alt.OnKeyUp -= Alt_OnKeyUp from my code the resource is working without any issues.

@ithr0n
Copy link
Contributor Author

ithr0n commented Aug 3, 2022

I recognized the same issue when I have many log messages in the opened game console, especially on reconnect. Then the key listeners don’t work, probably a client issue?

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

No branches or pull requests

1 participant