Repository navigation
Conversation
FIX: - reset an active streamer when `ChangeConnectionMode` selects a different mode - stop the old ADB listener before switching to Wi-Fi/TCP instead of leaving the UI in `Listening` - reconnect in the new mode when `auto_connect` is enabled; otherwise leave `Connect` available The same-mode selection remains a no-op, and the manual Stop -> Connect path is unchanged.
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
AppMsg::ChangeConnectionModeonly writesconfig.connection_mode. If a streamer is alreadyListening,ConnectedorWaitingOnStatus, the old streamer keeps running: ADB mode keeps its127.0.0.1listener andadb reversetunnel, and no listener exists for the newly selected Wi-Fi/TCP mode. The UI still showsListening...for the old mode, so the phone cannot connect until the user clicks the active button (Stop) and then Connect again.Changes
Listening,ConnectedorWaitingOnStatus, stop the old streamer and reset the UI toDefault(clear the audio stream / waveform and sync the tray).auto_connectis enabled, immediately start the newly selected mode; otherwise leave the normalConnectbutton available.Stop→Connectand same-mode selection are unchanged.Verification
cargo fmt --all -- --checkcargo check --all-targetscargo test --lib— 12 passedcargo clippy --all-targets— only the 5 pre-existing warningscargo buildd8274f9): switching betweenUSB AdbandWIFI / LAN (TCP)no longer leaves the stale-listener / Stop-then-Connect symptom. No dedicated log capture was kept for this switch (the app's default log level iswarn, so info-level mode-change lines are not persisted).Scope:
RustApp/src/ui/app.rs, +27 / −0.