Skip to content

Commit

Permalink
fix: don't enqueue next if flow mode is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Sep 19, 2024
1 parent 7969d90 commit 12e2ccc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions music_assistant/server/controllers/player_queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -1154,8 +1154,9 @@ def track_loaded_in_buffer(self, queue_id: str, item_id: str) -> None:
self.signal_update(queue_id)
# enqueue the next track as soon as the player reports
# it has started buffering the given queue item
task_id = f"enqueue_next_{queue_id}"
self.mass.call_later(2, self._enqueue_next, queue, item_id, task_id=task_id)
if not queue.flow_mode:
task_id = f"enqueue_next_{queue_id}"
self.mass.call_later(2, self._enqueue_next, queue, item_id, task_id=task_id)

# Main queue manipulation methods

Expand Down

0 comments on commit 12e2ccc

Please sign in to comment.