1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-10 06:20:07 +01:00

Improve 069b2aedae2279668b6051627a81fc4fbd9c146a

This commit is contained in:
pukkandan 2024-02-25 06:12:32 +05:30
parent 6c5c7d378e
commit 38885baf68
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

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"""