[utils] Fix WebSocketsWrapper

Bug in 3cea3edd1a
Closes #3422
This commit is contained in:
pukkandan 2022-04-15 17:05:49 +05:30
parent 3b9d9f4374
commit abfecb7bc1
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39
1 changed files with 1 additions and 0 deletions

View File

@ -5258,6 +5258,7 @@ class Config:
class WebSocketsWrapper(): class WebSocketsWrapper():
"""Wraps websockets module to use in non-async scopes""" """Wraps websockets module to use in non-async scopes"""
pool = None
def __init__(self, url, headers=None, connect=True): def __init__(self, url, headers=None, connect=True):
self.loop = asyncio.events.new_event_loop() self.loop = asyncio.events.new_event_loop()