small typo
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 3 Aug 2022 22:57:12 +0000 (00:57 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 3 Aug 2022 22:57:12 +0000 (00:57 +0200)
music_assistant/models/player_queue.py

index 1d32cda65b57adc44d5fd481b4e1ea1acf4885ab..c0146c6742759632cc7f4910b0441d7f7565fd76 100644 (file)
@@ -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