Skip to content

Commit

Permalink
Update service.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Nov 19, 2024
1 parent d43d241 commit 5b890ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ovos_dinkum_listener/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ def reload_configuration(self):
# Configuration changed, update status and reload
self.status.set_alive()

if new_hash['stt'] != self._applied_config_hash['stt']:
if not self.disable_reload and new_hash['stt'] != self._applied_config_hash['stt']:
LOG.info("Reloading STT")
if self.stt:
LOG.debug(f"old={self.stt.__class__}: {self.stt.config}")
Expand All @@ -1079,7 +1079,7 @@ def reload_configuration(self):
if self.stt:
LOG.debug(f"new={self.stt.__class__}: {self.stt.config}")

if new_hash['fallback'] != self._applied_config_hash['fallback']:
if not self.disable_reload and new_hash['fallback'] != self._applied_config_hash['fallback']:
LOG.info("Reloading Fallback STT")
if self.fallback_stt:
LOG.debug(f"old={self.fallback_stt.__class__}: "
Expand All @@ -1093,7 +1093,7 @@ def reload_configuration(self):
LOG.debug(f"new={self.fallback_stt.__class__}: "
f"{self.fallback_stt.config}")

if new_hash['hotwords'] != self._applied_config_hash['hotwords']:
if not self.disable_hotword_reload and new_hash['hotwords'] != self._applied_config_hash['hotwords']:
LOG.info("Reloading Hotwords")
LOG.debug(f"old={self.hotwords.applied_hotwords_config}")
self._reload_event.clear()
Expand Down

0 comments on commit 5b890ea

Please sign in to comment.