Skip to content

JslConnectDevices blocking when called again > JslDisconnectAndDisposeAll blocking if a device has been disconnected manually #43

Description

@benkuper

Hello,
I'm trying to find a way to have dynamic connection / disconnection detection to avoid having to relaunch the software everytime a joycon has been disconnected or reconnected.
The first JslConnectDevices is working just fine, but if I power down and power again my joycons, calling this function again will be blocking and the function never returns.

Am I doing something wrong or is there a known issue there ?

BTW, the project I'm working on for this is that : https://benjamin.kuperberg.fr/chataigne / https://github.com/benkuper/Chataigne

Thank you for this wonderful lib,
Cheers

Activity

  1. benkuper commented on Oct 1, 2021

    @benkuper
    Author

    I pushed the researched a bit further and figured that JslDisconnectAndDisposeAll is the problematic function, only when at least one controller has been powered down manually. When calling this with all connected controllers still connected, the method returns quickly, but if the controller or one of the connected controllers is not actually connected anymore, the method never returns.

  2. changed the title [-]JslConnectDevices blocking when called again[/-] [+]JslConnectDevices blocking when called again > JslDisconnectAndDisposeAll blocking if a device has been disconnected manually[/+] on Oct 1, 2021
  3. JibbSmart commented on Oct 1, 2021

    @JibbSmart
    Owner

    Thanks! I'll have a look

  4. JibbSmart commented on Oct 11, 2021

    @JibbSmart
    Owner

    Sorry it took so long, @benkuper. I think I've fixed the issue in v2.3.0, but not sure, because I haven't had the chance to fully explore it.

  5. benkuper commented on Jan 7, 2022

    @benkuper
    Author

    Thank you ! Is there a release for 2.3 ?

  6. JibbSmart commented on Jan 8, 2022

    @JibbSmart
    Owner

    Not yet, I'm afraid, but if you build from the latest on master it'll have what I think is the fix.

  7. benkuper commented on Jan 8, 2022

    @benkuper
    Author

    Gotcha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions