mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-07-24 13:38:37 +02:00
[PR #1523] [MERGED] iOS: Bugfix: resolve race condition when rebuilding queue for seeking back #1608
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/advplyr/audiobookshelf-app/pull/1523
Author: @complacentsee
Created: 3/22/2025
Status: ✅ Merged
Merged: 3/22/2025
Merged by: @advplyr
Base:
master← Head:ios_seekbacktrackbugfix📝 Commits (1)
647bd81iOS: resolve race condition when rebuilding queue for seeking back📊 Changes
1 file changed (+14 additions, -0 deletions)
View changed files
📝
ios/App/Shared/player/AudioPlayer.swift(+14 -0)📄 Description
This resolves a bug I introduced in
c72f7cdwhere a race condition exists when seeking requires rebuilding the audioPlayer item queue and the observers monitor that there is an item playing to ensure stopping at the end of the players queue.This PR allows the player to keep track if seeking is causing the audioPlayer item queue to be rebuilding, ensuring we don't end the session inadvertently.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.