diff --git a/pymodbus/transaction/transaction.py b/pymodbus/transaction/transaction.py index 6bea652b5..9c9a0ef5f 100644 --- a/pymodbus/transaction/transaction.py +++ b/pymodbus/transaction/transaction.py @@ -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: