Skip to content

Commit

Permalink
Merge pull request #6 from blog-h7d/fix-timout-loop-error
Browse files Browse the repository at this point in the history
removed unused loop for asyncio-timeout
  • Loading branch information
mtdcr authored Jan 4, 2022
2 parents 21c6bcb + 87ccd8b commit b85b602
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
'Topic :: Software Development :: Libraries :: Python Modules',
],
install_requires=[
'async-timeout>=3.0.1',
'bitstring>=3.1.5',
'pyserial-asyncio>=0.4',
'async-timeout>=4.0',
'bitstring>=3.1',
'pyserial-asyncio>=0.6',
],
)
2 changes: 1 addition & 1 deletion sml/asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async def _reconnect(self, delay: int = 10):
await self._disconnect()
await asyncio.sleep(delay, loop=self._loop)
try:
async with timeout(5, loop=self._loop):
async with timeout(5):
self._transport, _ = await self._create_connection()
except (BrokenPipeError, ConnectionRefusedError,
SerialException, asyncio.TimeoutError) as exc:
Expand Down

0 comments on commit b85b602

Please sign in to comment.