Skip to content

A feature-rich command-line audio/video downloader

[utils] Fix WebSocketsWrapper

pukkandanabfecb7bc13e
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index 966548466e..34a9383629 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -5258,6 +5258,7 @@ class Config:
class WebSocketsWrapper():
"""Wraps websockets module to use in non-async scopes"""
+ pool = None
def __init__(self, url, headers=None, connect=True):
self.loop = asyncio.events.new_event_loop()