1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-31 14:45:14 +00:00
Authored by: Grub4k
This commit is contained in:
Simon Sawicki
2024-03-10 16:14:53 +01:00
committed by GitHub
parent 8993721ecb
commit dbd8b1bff9
2 changed files with 4 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ class RequestDirector:
def close(self):
for handler in self.handlers.values():
handler.close()
self.handlers = {}
self.handlers.clear()
def add_handler(self, handler: RequestHandler):
"""Add a handler. If a handler of the same RH_KEY exists, it will overwrite it"""