mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 14:54:21 +01:00
if max_retries == 0 continue forever
This commit is contained in:
@@ -128,7 +128,7 @@ class GenericWebsocket:
|
||||
s = Socket(sId)
|
||||
self.sockets[sId] = s
|
||||
loop = asyncio.get_event_loop()
|
||||
while retries < self.max_retries and self.attempt_retry:
|
||||
while self.max_retries == 0 or (retries < self.max_retries and self.attempt_retry):
|
||||
try:
|
||||
async with websockets.connect(self.host) as websocket:
|
||||
self.sockets[sId].set_websocket(websocket)
|
||||
|
||||
Reference in New Issue
Block a user