Revert "spacing"

This reverts commit 65a3bec654.
This commit is contained in:
itsdeka
2021-12-14 12:10:45 +01:00
parent 65a3bec654
commit 0a6cc34f8a
4 changed files with 3 additions and 9 deletions

View File

@@ -84,10 +84,7 @@ class GenericWebsocket:
thread and connection.
"""
self._start_new_socket()
try:
event_loop = asyncio.get_event_loop()
except Exception:
event_loop = None
event_loop = asyncio.get_event_loop()
if not event_loop or not event_loop.is_running():
while True:
time.sleep(1)