mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-10 00:35:13 +01:00
[utils] Popen: Refactor to use contextmanager
Fixes https://github.com/yt-dlp/yt-dlp/issues/3531#issuecomment-1156223597
This commit is contained in:
parent
560738f34d
commit
f0c9fb9682
9 changed files with 98 additions and 123 deletions
|
|
@ -92,8 +92,7 @@ class RtmpFD(FileDownloader):
|
|||
self.to_screen('')
|
||||
return proc.wait()
|
||||
except BaseException: # Including KeyboardInterrupt
|
||||
proc.kill()
|
||||
proc.wait()
|
||||
proc.kill(timeout=None)
|
||||
raise
|
||||
|
||||
url = info_dict['url']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue