Prevent focus and socket reconnect from both fetching server media progress

This commit is contained in:
advplyr
2026-05-10 11:12:17 -05:00
parent 68dafbba75
commit ed2f9d2e45
+6
View File
@@ -320,6 +320,12 @@ export default {
const libraryItemId = this.currentPlaybackSession?.libraryItemId
const episodeId = this.currentPlaybackSession?.episodeId
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}`
this.$refs.audioPlayer?.setIsCheckingServerProgress(true)