iOS chapter sleep timer does not always stop at chapter end #285

Closed
opened 2026-04-24 23:15:20 +02:00 by adam · 0 comments
Owner

Originally created by @ronaldheft on GitHub (Sep 6, 2022).

Steps to reproduce

  1. Set a sleep timer to the end of the chapter
  2. Wait for the end of the end of the chapter (can skip forward to reduce the wait time)
  3. Observe that a small percentage of the time, playback does not stop, yet the sleep timer is cleared
  4. This doesn't always happen, so it make take several tries to reproduce

Expected behaviour

  • The chapter sleep timer should always stop playback

Actual behaviour

  • The chapter sleep timer only most of the time stops playback

Proposed fix

  • This is related to logic for clearing the chapter sleep timer if you skip past the chapter end
  • I will either ensure that the sleep timer logic can be guaranteed to run before the sleep timer is cleared, or I will ensure that the timer clear logic also stops playback if within the time range the sleep timer is supposed to end

Environment data

Audiobookshelf Version:

  • Android App?
  • iOS App?

Android Issue

Android version:

Device model:

Stock or customized system:

iOS Issue

iOS Version:

iPhone model:

Originally created by @ronaldheft on GitHub (Sep 6, 2022). ### Steps to reproduce 1. Set a sleep timer to the end of the chapter 2. Wait for the end of the end of the chapter (can skip forward to reduce the wait time) 3. Observe that a small percentage of the time, playback does not stop, yet the sleep timer is cleared 4. This doesn't always happen, so it make take several tries to reproduce ### Expected behaviour - The chapter sleep timer should always stop playback ### Actual behaviour - The chapter sleep timer only most of the time stops playback ### Proposed fix - This is related to logic for clearing the chapter sleep timer if you skip past the chapter end - I will either ensure that the sleep timer logic can be guaranteed to run before the sleep timer is cleared, or I will ensure that the timer clear logic also stops playback if within the time range the sleep timer is supposed to end ### Environment data Audiobookshelf Version: - [ ] Android App? - [x] iOS App? #### Android Issue Android version: Device model: Stock or customized system: #### iOS Issue iOS Version: iPhone model:
adam added the bug label 2026-04-24 23:15:20 +02:00
adam closed this issue 2026-04-24 23:15:20 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#285