fix(voice-input): Simplify VAD recording stop logic by removing redundant condition

This commit is contained in:
cogwheel0
2025-11-24 14:00:11 +05:30
parent c9e9dbd54a
commit 83d59fb294

View File

@@ -661,9 +661,7 @@ class VoiceInputService {
Future<void> _stopVadRecording() async {
try {
if (_isListening) {
await _vadHandler.stopListening();
}
await _vadHandler.stopListening();
} catch (_) {}
await _vadSpeechEndSub?.cancel();
_vadSpeechEndSub = null;