From d3390302c495f4069b2eb31c4e68cc521679c760 Mon Sep 17 00:00:00 2001 From: Marek Veber Date: Sun, 6 Oct 2024 23:56:17 +0200 Subject: [PATCH] fix the reconnection after a random disconnection --- usr_r16/protocol.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr_r16/protocol.py b/usr_r16/protocol.py index a43d9cb..de02a33 100644 --- a/usr_r16/protocol.py +++ b/usr_r16/protocol.py @@ -291,6 +291,9 @@ def _send(self, packet): async def handle_disconnect_callback(self): """Reconnect automatically unless stopping.""" self.is_connected = False + self.active_transaction = None + self.in_transaction = False + self.active_packet = None if self.disconnect_callback: self.disconnect_callback() if self.reconnect: