From c8f54d0cefa4e05c47fcb45a84f1eedb7f6b187f Mon Sep 17 00:00:00 2001 From: "Bernd (Hermes)" Date: Fri, 24 Jul 2026 19:42:54 +0200 Subject: [PATCH] =?UTF-8?q?docs(B3):=20=5Fon=5Fddp=5Fconnected=20set=5Fsta?= =?UTF-8?q?tus=20sync=20=E2=80=94=20Begr=C3=BCndung=20dokumentiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bewusst sync: First status after connect does not need await-confirmation. PulseController takes over with set_status_async on the next tick (1.5s). This avoids a 2s-await-wait during the critical connect path. --- plugin/adapter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/adapter.py b/plugin/adapter.py index 302cac6..e5243dc 100644 --- a/plugin/adapter.py +++ b/plugin/adapter.py @@ -1120,6 +1120,10 @@ class RocketChatAdapter(BasePlatformAdapter): to prevent race condition with gateway_state.json. """ if self.ddp: + # B3: Bewusst sync — first status after connect does not need + # await-confirmation. PulseController takes over with + # set_status_async on the next tick (1.5s). This avoids a + # 2s-await-wait during the critical connect path. self.ddp.set_status("online") # V8.6: PulseController DDP-Bindung nach Connect (EC-1) if hasattr(self, '_presence_engine') and self._presence_engine is not None: