Skip to content

Commit

Permalink
feat: set connect timeout to 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
IATkachenko authored Aug 11, 2022
1 parent 43ebd6e commit 625535a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tion_btle/tion.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def connection_status(self):
async def _try_connect(self) -> bool:
"""Tries to connect with retries"""

return await self._btle.connect()
return await self._btle.connect(timeout=5.0)

@final
async def _connect(self, need_notifications: bool = True):
Expand Down

0 comments on commit 625535a

Please sign in to comment.