diff options
author | Simon Sawicki <contact@grub4k.xyz> | 2024-03-10 16:14:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-10 20:44:53 +0530 |
commit | dbd8b1bff9afd8f05f982bcd52c20bc173c266ca (patch) | |
tree | 8bdb0e37d89c17c135fbddf5c72d73ab74a39f66 /yt_dlp/networking/common.py | |
parent | 8993721ecb34867b52b79f6e92b233008d1cbe78 (diff) |
Improve 069b2aedae2279668b6051627a81fc4fbd9c146a
Authored by: Grub4k
Diffstat (limited to 'yt_dlp/networking/common.py')
-rw-r--r-- | yt_dlp/networking/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/networking/common.py b/yt_dlp/networking/common.py index 7da2652ae..e43d74ead 100644 --- a/yt_dlp/networking/common.py +++ b/yt_dlp/networking/common.py @@ -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""" |