diff --git a/src/jukebox/components/player/plugin/__init__.py b/src/jukebox/components/player/plugin/__init__.py index ed5c3c7d6..ca0e24781 100644 --- a/src/jukebox/components/player/plugin/__init__.py +++ b/src/jukebox/components/player/plugin/__init__.py @@ -28,6 +28,7 @@ # The various backends backend_mpd: Optional[MPDBackend] = None + def start_event_loop(loop: asyncio.AbstractEventLoop): # https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.shutdown_asyncgens logger.debug("Start player AsyncIO Background Event Loop") diff --git a/src/jukebox/components/volume/__init__.py b/src/jukebox/components/volume/__init__.py index b4fd8a35a..ae7e4229e 100644 --- a/src/jukebox/components/volume/__init__.py +++ b/src/jukebox/components/volume/__init__.py @@ -62,7 +62,6 @@ import logging import threading import time -import traceback import pulsectl import jukebox.cfghandler @@ -649,6 +648,7 @@ def finalize(): else: pulse_control.publish_volume() + @plugin.atexit def atexit(**ignored_kwargs): global pulse_monitor