From ed2f9d2e45faba865b51dea93ca105ab140ec4af Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 10 May 2026 11:12:17 -0500 Subject: [PATCH] Prevent focus and socket reconnect from both fetching server media progress --- components/app/AudioPlayerContainer.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/app/AudioPlayerContainer.vue b/components/app/AudioPlayerContainer.vue index 6be88763..d15e7179 100644 --- a/components/app/AudioPlayerContainer.vue +++ b/components/app/AudioPlayerContainer.vue @@ -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)