Skip to content

fix(Targets): Stop target device drivers when the composite device is torn down - #731

Open
pastaq wants to merge 1 commit into
mainfrom
pastaq/target_teardown
Open

pastaq wants to merge 1 commit into
mainfrom
pastaq/target_teardown

Conversation

@pastaq

@pastaq pastaq commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

on_composite_device_stopped() previously just dropped each target's TargetDeviceClient handle instead of calling stop() on it, so the target task exited via a channel-disconnect error path that skipped implementation.stop()/destroy(), that leaked the uhid virtual device on every composite device teardown.

closes #317

Comment thread src/input/manager.rs
… torn down

on_composite_device_stopped() previously just dropped each target's
TargetDeviceClient handle instead of calling stop() on it, so the target
task exited via a channel-disconnect error path that skipped
implementation.stop()/destroy(), that leaked the uhid virtual device on
every composite device teardown.
@pastaq
pastaq force-pushed the pastaq/target_teardown branch from 369e850 to 6104a96 Compare September 29, 2026 01:54
@pastaq
pastaq requested a review from ShadowApex September 29, 2026 01:54

This branch has not been deployed

No deployments
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.

[Bug] - Steam Deck target device lost while detaching from a USB dock during resume

2 participants