invidious icon indicating copy to clipboard operation
invidious copied to clipboard

Ensure IO is properly closed when importing NewPipe subscriptions

Open ChunkyProgrammer opened this issue 1 year ago • 0 comments

File.open accepts a second argument which will close the initial stream (IO::Memory.new(body)) when the File stream closes.

I also made it so that the code is a bit more safe with closing connections. ex: if an error occurs. This may also fix some potential memory leaks

ChunkyProgrammer avatar Dec 20 '23 05:12 ChunkyProgrammer