Skip to content

Commit

Permalink
re-instatiate Future on reconnect (pymodbus-dev#2501)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-care authored Dec 13, 2024
1 parent f5ede3e commit 213f5d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pymodbus/transaction/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def callback_connected(self) -> None:
"""Call when connection is succcesfull."""
self.count_no_responses = 0
self.next_tid = 0
self.response_future = asyncio.Future()
self.trace_connect(True)

def callback_disconnected(self, exc: Exception | None) -> None:
Expand Down

0 comments on commit 213f5d7

Please sign in to comment.