]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/networking/common.py
Create `ydl._request_director` when needed
[yt-dlp.git] / yt_dlp / networking / common.py
index 584c7bb4db4b6792f484c6b95376402cd548c21f..7da2652ae51c7a3af69ee0c77b12b13e9e18f078 100644 (file)
@@ -68,6 +68,7 @@ def __init__(self, logger, verbose=False):
     def close(self):
         for handler in self.handlers.values():
             handler.close()
+        self.handlers = {}
 
     def add_handler(self, handler: RequestHandler):
         """Add a handler. If a handler of the same RH_KEY exists, it will overwrite it"""