Skip to content

Commit 38f397c

Browse files
committed
timeout on rejoin
1 parent 4829aa2 commit 38f397c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

thingsdb/client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ async def _reconnect_loop(self):
671671
await self._connect(timeout=timeout)
672672
await self._ping(timeout=2)
673673
await self._authenticate(timeout=5)
674-
await self._rejoin()
674+
await asyncio.wait_for(self._rejoin(), timeout=5)
675675
except Exception as e:
676676
name = host if self._is_websocket_host(host) else \
677677
f'{host}:{port}'

thingsdb/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.2.1'
1+
__version__ = '1.2.2'

0 commit comments

Comments
 (0)