[fix](trx-frontend-http): drop global info_rx fallback for vchan audio

Use only the per-rig stream info when a remote is specified on the
channel audio path; do not fall back to the global channel.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-24 08:03:07 +01:00
parent 723e3ad7cb
commit 7e447ab1f6
@@ -503,9 +503,7 @@ pub async fn audio_ws(
tokio::sync::watch::Receiver<Option<trx_core::audio::AudioStreamInfo>>,
) = if let Some(ch_id) = query.channel_id {
let info_rx = if let Some(ref remote) = query.remote {
context
.rig_audio_info_rx(remote)
.or_else(|| context.audio_info.as_ref().cloned())
context.rig_audio_info_rx(remote)
} else {
context.audio_info.as_ref().cloned()
};