From d843fcf5d21f2263f6ff6d6b70396a11752deb69 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Wed, 13 Apr 2022 03:47:27 -0400 Subject: [PATCH] Reset RPC min broadcast ID when node module resets Otherwise, bridge module will ignore events until new broadcast ID catches up to the old one --- matrix_appservice_kakaotalk/rpc/rpc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/matrix_appservice_kakaotalk/rpc/rpc.py b/matrix_appservice_kakaotalk/rpc/rpc.py index 0914015..59c9fcc 100644 --- a/matrix_appservice_kakaotalk/rpc/rpc.py +++ b/matrix_appservice_kakaotalk/rpc/rpc.py @@ -166,6 +166,8 @@ class RPCClient: self._on_disconnect() def _on_disconnect(self) -> None: + self._req_id = 0 + self._min_broadcast_id = 0 self._reader = None self._writer = None self._is_connected.clear()