Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Abort blockloader when player is closing #7340

Merged
merged 2 commits into from
Jan 18, 2024
Merged

Abort blockloader when player is closing #7340

merged 2 commits into from
Jan 18, 2024

Conversation

snosenzo
Copy link
Contributor

@snosenzo snosenzo commented Jan 17, 2024

User-Facing Changes

  • fix memory leak across data sources when blockloading was incomplete

Description

#abortController.abort() was not being called in Blockloader.stopLoading so the blockloader would need to finish loading before the player was closed.

We also might want to consider adding a timeout for a warning or error when stateClose is called on the player so that we know if the last player didn't close in a reasonable amount of time.

Copy link
Contributor

@defunctzombie defunctzombie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs more Finalization registry 🤣

@snosenzo snosenzo merged commit 3010020 into main Jan 18, 2024
14 checks passed
@snosenzo snosenzo deleted the abort-blockloader branch January 18, 2024 14:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants