Skip to content

stream.segmented: properly close StreamIO #4972

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

bastimeyer
Copy link
Member

If super().close() doesn't get called in SegmentedStreamReader.close(), then closed won't be set to True.
https://docs.python.org/3/library/io.html#io.IOBase.close

Noticed that while working on a solution for #4642

@gravyboat gravyboat merged commit 485a5b5 into streamlink:master Nov 16, 2022
@bastimeyer bastimeyer deleted the stream/segmented/close branch November 16, 2022 11:26
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants