mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-20 07:14:20 +01:00
Bugfix - It is now possible to call bfx.ws.run() from an already running event loop
This commit is contained in:
@@ -84,8 +84,10 @@ class GenericWebsocket:
|
||||
thread and connection.
|
||||
"""
|
||||
self._start_new_socket()
|
||||
while True:
|
||||
time.sleep(1)
|
||||
event_loop = asyncio.get_event_loop()
|
||||
if not event_loop or not event_loop.is_running():
|
||||
while True:
|
||||
time.sleep(1)
|
||||
|
||||
def get_task_executable(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user