mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-27 05:43:58 +02:00
Prevent focus and socket reconnect from both fetching server media progress
This commit is contained in:
@@ -320,6 +320,12 @@ export default {
|
|||||||
const libraryItemId = this.currentPlaybackSession?.libraryItemId
|
const libraryItemId = this.currentPlaybackSession?.libraryItemId
|
||||||
const episodeId = this.currentPlaybackSession?.episodeId
|
const episodeId = this.currentPlaybackSession?.episodeId
|
||||||
if (!libraryItemId) return null
|
if (!libraryItemId) return null
|
||||||
|
|
||||||
|
if (this.$refs.audioPlayer?.isCheckingServerProgress) {
|
||||||
|
console.log('[AudioPlayerContainer] getServerMediaProgressForCurrentSession: already checking server progress')
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
const url = episodeId ? `/api/me/progress/${libraryItemId}/${episodeId}` : `/api/me/progress/${libraryItemId}`
|
const url = episodeId ? `/api/me/progress/${libraryItemId}/${episodeId}` : `/api/me/progress/${libraryItemId}`
|
||||||
|
|
||||||
this.$refs.audioPlayer?.setIsCheckingServerProgress(true)
|
this.$refs.audioPlayer?.setIsCheckingServerProgress(true)
|
||||||
|
|||||||
Reference in New Issue
Block a user