diff --git a/src/components/RtlSdrControls.tsx b/src/components/RtlSdrControls.tsx index ff80692..b9b20f6 100644 --- a/src/components/RtlSdrControls.tsx +++ b/src/components/RtlSdrControls.tsx @@ -108,7 +108,10 @@ export default function RtlSdrControls({ }); useEffect(() => { - if (!requestedStation && status != RtlSdrStatus.Stopped) { + if ( + (!requestedStation && status != RtlSdrStatus.Stopped) || + (requestedStation && requestedStation?.type != currentStationType) + ) { stop_stream(); } }, [requestedStation, status]);