From 804edac1837d5b28f765615ef995e4e1eb855be9 Mon Sep 17 00:00:00 2001 From: Wesley Luyten Date: Wed, 4 Dec 2024 16:46:44 -0600 Subject: [PATCH] Update src/js/media-store/media-store.ts Co-authored-by: Christian Pillsbury --- src/js/media-store/media-store.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/media-store/media-store.ts b/src/js/media-store/media-store.ts index 8158cb01a..7bb95433d 100644 --- a/src/js/media-store/media-store.ts +++ b/src/js/media-store/media-store.ts @@ -492,7 +492,9 @@ const createMediaStore = ({ // For any state change request "actions"/"events" of media (and related) state, // these are handled by the `RequestMap`, which defines a function for a given change request type // that is responsible for what should happen as a result - // If a fatal error occurred, we should not process any more state change requests. + // If a fatal error occurred, we should not process any more state change requests, + // but we should process updates to state owners or options/defaults, handled below, + // which is why we don't simply early bail here. if (requestMap[type] && state.mediaErrorCode == null) { // Most state change requests do not directly update the media state. Instead // they will typically interact in some way or another with one or more of the `StateOwner`s (like the media element).