docs(B3): _on_ddp_connected set_status sync — Begründung dokumentiert

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.
This commit is contained in:
Bernd (Hermes)
2026-07-24 19:42:54 +02:00
parent 78b9a15cbd
commit c8f54d0cef
+4
View File
@@ -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: