From 85b0697a1950797308989ac83fd947e3dda661b2 Mon Sep 17 00:00:00 2001 From: dmitrylyzo <56478732+dmitrylyzo@users.noreply.github.com> Date: Sun, 23 Jun 2024 11:42:25 -0400 Subject: [PATCH] Backport pull request #5681 from jellyfin-web/release-10.9.z Fix loading hides too early Original-merge: 674b0b118f43fe06c0862b64d2ac6b22e16bcfd2 Merged-by: thornbill Backported-by: Joshua M. Boniface --- src/components/playback/playbackmanager.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/playback/playbackmanager.js b/src/components/playback/playbackmanager.js index 54541337a18..676d1df1c3f 100644 --- a/src/components/playback/playbackmanager.js +++ b/src/components/playback/playbackmanager.js @@ -2295,7 +2295,7 @@ class PlaybackManager { return playAfterBitrateDetect(bitrate, item, playOptions, onPlaybackStartedFn, prevSource) .catch(onPlaybackRejection); }) - .finally(() => { + .catch(() => { if (playOptions.fullscreen) { loading.hide(); } @@ -2354,8 +2354,6 @@ class PlaybackManager { return; } - loading.hide(); - const options = Object.assign({}, playOptions); options.mediaType = item.MediaType;