From: Marcel van der Veldt Date: Fri, 7 Mar 2025 00:14:19 +0000 (+0100) Subject: Fix: prevent snapcast restarting when mass is shutting down X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=7c28461083811a93aecd180589b6d7cf761b1c16;p=music-assistant-server.git Fix: prevent snapcast restarting when mass is shutting down --- diff --git a/music_assistant/providers/snapcast/__init__.py b/music_assistant/providers/snapcast/__init__.py index ea24ddfe..1f011889 100644 --- a/music_assistant/providers/snapcast/__init__.py +++ b/music_assistant/providers/snapcast/__init__.py @@ -758,7 +758,7 @@ class SnapCastProvider(PlayerProvider): def _handle_disconnect(self, exc: Exception) -> None: """Handle disconnect callback from snapserver.""" - if self._stop_called: + if self._stop_called or self.mass.closing: # we're instructed to stop/exit, so no need to restart the connection return self.logger.info(