mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 14:54:21 +01:00
merge
This commit is contained in:
@@ -84,10 +84,7 @@ class GenericWebsocket:
|
|||||||
thread and connection.
|
thread and connection.
|
||||||
"""
|
"""
|
||||||
self._start_new_socket()
|
self._start_new_socket()
|
||||||
try:
|
event_loop = asyncio.get_event_loop()
|
||||||
event_loop = asyncio.get_event_loop()
|
|
||||||
except Exception:
|
|
||||||
event_loop = None
|
|
||||||
if not event_loop or not event_loop.is_running():
|
if not event_loop or not event_loop.is_running():
|
||||||
while True:
|
while True:
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user