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

CorsairSessionStateChangedHandler not triggered with CorsairDisconnect if CorsairSubscribeForEvents is used #33

Open
Aytackydln opened this issue May 12, 2023 · 1 comment

Comments

@Aytackydln
Copy link

Aytackydln commented May 12, 2023

Happens consistently, all the time.
iCUE SDK v4.0.48

C# wrapper that handles the sdk:
https://github.com/Aytackydln/RGB.NET/blob/1d2605748297b2a2b9c6acaba7aa9c055a945e3d/RGB.NET.Devices.Corsair/Native/_CUESDK.cs

@Aytackydln
Copy link
Author

A little more info on this topic:

  • Event is usually not called on first connection. Usually after disconnecting and connecting, CorsairSessionStateChanged event is triggered
  • CorsairUnsubscribeForEvents has no effect. Each reconnection adds another handle to CorsairEventCallback. Disconnections don't remove them either. So device connection events are called as many as reconnections.

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