From 7c28461083811a93aecd180589b6d7cf761b1c16 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 7 Mar 2025 01:14:19 +0100 Subject: [PATCH] Fix: prevent snapcast restarting when mass is shutting down --- music_assistant/providers/snapcast/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.34.1