From 35a7d780c0a1687ec555ef522e4271b376b75938 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Thu, 4 Aug 2022 00:57:12 +0200 Subject: [PATCH] small typo --- music_assistant/models/player_queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/models/player_queue.py b/music_assistant/models/player_queue.py index 1d32cda6..c0146c67 100644 --- a/music_assistant/models/player_queue.py +++ b/music_assistant/models/player_queue.py @@ -674,7 +674,7 @@ class PlayerQueue: ): self.stream.signal_next = None # handle last track of the queue, set the index to index that is out of range - if self._current_index >= (len(self._items) - 1): + if (self._current_index or 0) >= (len(self._items) - 1): self._current_index += 1 # always signal update if the PlayerState changed -- 2.34.1