Skip to content

Fix device disconnect for windows #368

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

Merged
merged 1 commit into from
Jul 29, 2025

Conversation

necroin
Copy link
Contributor

@necroin necroin commented May 30, 2025

Related issues #247, #248

Added a DeviceService subscription to Device Disconnect function call, that causes DeviceService Close function call.

Tested personally, you can now reconnect to the device without restarting the process.

@deadprogram deadprogram changed the base branch from release to dev June 9, 2025 06:17
@deadprogram
Copy link
Member

Looks like it should be good, but I would defer to @jagobagascon or others with more Windows knowledge here, if anyone else would care to comment.

@deadprogram
Copy link
Member

Pinging Dr. @jagobagascon 😸

Copy link
Member

@jagobagascon jagobagascon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to replicate the issue with two different devices with no luck. So it seems that some devices are not affected by this issue.

But some of my colleagues reported that this PR fixes the issue for them (thanks for the hard work @sorayaormazabalmayo).

And I can confirm that my tests still work so the change looks good to me.

@jagobagascon jagobagascon merged commit baba482 into tinygo-org:dev Jul 29, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

3 participants