Skip to content

Commit

Permalink
- Added the connected event to transaction limit for TCP client so th…
Browse files Browse the repository at this point in the history
…at modbus commands will wait until connected

- Version Bump
  • Loading branch information
pazzarpj committed Apr 22, 2020
1 parent 71a0f36 commit 84d62cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiomodbus/tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ class ModbusTCPClient:
running: bool = True

def __post_init__(self):
self.transaction_limit = TransactionLimit(self.max_active_requests)
self.connected = asyncio.Event()
self.transaction_limit = TransactionLimit(self.max_active_requests, self.connected)

async def connect(self):
try:
Expand Down

0 comments on commit 84d62cb

Please sign in to comment.