From 83d59fb2941054593643e4371d360c4d9757c208 Mon Sep 17 00:00:00 2001 From: cogwheel0 <172976095+cogwheel0@users.noreply.github.com> Date: Mon, 24 Nov 2025 14:00:11 +0530 Subject: [PATCH] fix(voice-input): Simplify VAD recording stop logic by removing redundant condition --- lib/features/chat/services/voice_input_service.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/features/chat/services/voice_input_service.dart b/lib/features/chat/services/voice_input_service.dart index 1891705..5f7351f 100644 --- a/lib/features/chat/services/voice_input_service.dart +++ b/lib/features/chat/services/voice_input_service.dart @@ -661,9 +661,7 @@ class VoiceInputService { Future _stopVadRecording() async { try { - if (_isListening) { - await _vadHandler.stopListening(); - } + await _vadHandler.stopListening(); } catch (_) {} await _vadSpeechEndSub?.cancel(); _vadSpeechEndSub = null;