mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-07-29 07:58:43 +02:00
Fix typo in if statement
This commit is contained in:
@@ -219,7 +219,7 @@ class AudioPlayer: NSObject {
|
||||
|
||||
// Seek the player before initializing, so a currentTime of 0 does not appear in MediaProgress / session
|
||||
let firstReady = self.status < 0
|
||||
if firstReady || !self.playWhenReady {
|
||||
if firstReady && !self.playWhenReady {
|
||||
// Seek is async, and if we call this when also pressing play, we will get weird jumps in the scrub bar depending on timing
|
||||
// Seeking to the correct position happens during play()
|
||||
self.seek(playbackSession.currentTime, from: "queueItemStatusObserver")
|
||||
|
||||
Reference in New Issue
Block a user