Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
rm pidlock (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored May 19, 2023
1 parent 9fa3f86 commit 842036e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ovos_listener/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@
from ovos_config.locale import setup_locale
from ovos_utils import wait_for_exit_signal
from ovos_utils.log import init_service_logger
from ovos_utils.process_utils import PIDLock, reset_sigint_handler
from ovos_utils.process_utils import reset_sigint_handler

from ovos_listener.service import SpeechService, on_error, on_stopping, on_ready


def main(ready_hook=on_ready, error_hook=on_error, stopping_hook=on_stopping,
watchdog=lambda: None):
PIDLock.init()
reset_sigint_handler()
reset_sigint_handler() # why is this needed again? TODO remove usage across all repos after investigating
init_service_logger("voice")
PIDLock("voice")
setup_locale()
service = SpeechService(on_ready=ready_hook,
on_error=error_hook,
Expand Down

0 comments on commit 842036e

Please sign in to comment.