From: Marcel van der Veldt Date: Sun, 16 Mar 2025 08:34:43 +0000 (+0100) Subject: Chore: Require first start to be successful for spotify connect X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=5fe49d85756fd075aae251b095b920d0bd1fbad0;p=music-assistant-server.git Chore: Require first start to be successful for spotify connect --- diff --git a/music_assistant/providers/spotify_connect/__init__.py b/music_assistant/providers/spotify_connect/__init__.py index f8d7d612..fd91152c 100644 --- a/music_assistant/providers/spotify_connect/__init__.py +++ b/music_assistant/providers/spotify_connect/__init__.py @@ -243,6 +243,8 @@ class SpotifyConnectProvider(PluginProvider): await librespot.close(True) self.logger.info("Spotify Connect background daemon stopped for %s", self.name) await check_output("rm", "-f", self.named_pipe) + if not self._librespot_started.is_set(): + self.unload_with_error("Unable to initialize librespot daemon.") # auto restart if not stopped manually if not self._stop_called and self._librespot_started.is_set(): self._setup_player_daemon()