cue-sdk icon indicating copy to clipboard operation
cue-sdk copied to clipboard

CorsairSessionStateChangedHandler not triggered with CorsairDisconnect if CorsairSubscribeForEvents is used

Open Aytackydln opened this issue 2 years ago • 1 comments

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 avatar May 12 '23 18:05 Aytackydln

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.

Aytackydln avatar May 14 '23 15:05 Aytackydln