diff --git a/linux_voice_assistant/satellite.py b/linux_voice_assistant/satellite.py index 6679161..9b94779 100644 --- a/linux_voice_assistant/satellite.py +++ b/linux_voice_assistant/satellite.py @@ -164,6 +164,7 @@ class VoiceSatelliteProtocol(APIServer): self._timer_finished = False self._processing = False self._external_wake_words: Dict[str, VoiceAssistantExternalWakeWord] = {} + self._disconnect_event = asyncio.Event() def _set_thinking_sound_enabled(self, new_state: bool) -> None: self.state.thinking_sound_enabled = bool(new_state) @@ -175,8 +176,6 @@ class VoiceSatelliteProtocol(APIServer): _LOGGER.debug("Thinking sound disabled") pass self.state.save_preferences() - - self._disconnect_event = asyncio.Event() def _set_muted(self, new_state: bool) -> None: self.state.muted = bool(new_state)